Skip to content

@graphty/graphty-element / extend / ImporterReport

Interface: ImporterReport ​

Defined in: graph-io/dist/src/types.d.ts:464

What happened while a file was read.

Properties ​

counts ​

readonly counts: object

Defined in: graph-io/dist/src/types.d.ts:471

What was read from the file, counted before the graph was built: duplicateEdges and selfLoops: "drop" can leave fewer edges in the snapshot (each reported as a warning).

edges ​

readonly edges: number

Edges read (an undirected edge expanded into two by onMixedDirection "expand" counts twice).

expandedMixed ​

readonly expandedMixed: number

Undirected edges expanded into two by onMixedDirection "expand".

nodes ​

readonly nodes: number

Nodes read.

skippedEdges ​

readonly skippedEdges: number

Edges skipped after an error.

skippedNodes ​

readonly skippedNodes: number

Nodes skipped after an error.


durationMs ​

readonly durationMs: number

Defined in: graph-io/dist/src/types.d.ts:494

How long reading the file took, in milliseconds.


errorCount ​

readonly errorCount: number

Defined in: graph-io/dist/src/types.d.ts:486

Issues with severity "error".


format ​

readonly format: string

Defined in: graph-io/dist/src/types.d.ts:466

The format the file was read as.


issues ​

readonly issues: readonly ImportIssue[]

Defined in: graph-io/dist/src/types.d.ts:484

Every issue recorded, in order.


lossy ​

readonly lossy: readonly LossNote[]

Defined in: graph-io/dist/src/types.d.ts:492

What the importer could not represent.


truncated ​

readonly truncated: boolean

Defined in: graph-io/dist/src/types.d.ts:490

Whether the error limit was reached and the import aborted.


warningCount ​

readonly warningCount: number

Defined in: graph-io/dist/src/types.d.ts:488

Issues with severity "warning".