Skip to content

@graphty/graph-io / @graphty/graph-io / ImportFormatDefaults

Interface: ImportFormatDefaults ​

Defined in: common/options.ts:26

The defaults an importer supplies for the options whose default is per format.

Properties ​

addMissingNodes? ​

readonly optional addMissingNodes?: boolean

Defined in: common/options.ts:34

Whether edges may reference undeclared nodes; true unless the format says otherwise (GEXF: false).


defaultDirected ​

readonly defaultDirected: boolean

Defined in: common/options.ts:30

The direction assumed when the file declares none.


ids ​

readonly ids: IdCoercion

Defined in: common/options.ts:28

"canonical" for text-cell formats, "keep" for JSON.


weightFrom ​

readonly weightFrom: string | null

Defined in: common/options.ts:32

The attribute that becomes the weight ("weight", GML "value"), or null for an unweighted format.