@graphty/graphty-element / session / LoadReport
Interface: LoadReport ​
Defined in: graphty-element/src/data/report.ts:128
An ImportReport plus two facts a reader checks before and after a load: session.data.lastImport() and LoadDraft.report() both return it.
Extends ​
Properties ​
counts ​
readonlycounts:object
Defined in: graphty-element/src/data/report.ts:42
The numbers that used to be one, and disagreed.
edgeRecords ​
readonlyedgeRecords:number
Edge records handed over, however many of them became edges.
edges ​
readonlyedges:number
Edges the graph holds after the load.
nodeRecords ​
readonlynodeRecords:number
Node records handed over, which is fewer than nodes when an edge named an endpoint the file never declared as a node of its own.
nodes ​
readonlynodes:number
Nodes the graph holds after the load.
rejected ​
readonlyrejected:number
Records that became nothing: an edge record whose endpoint ids the store would not take, and a node record with no usable id (absent, null, or not a string or a finite number). LoadDraft.rows(id, { only: "rejected" }) lists them before a load.
Inherited from ​
duplicates ​
readonlyduplicates:object
Defined in: graphty-element/src/data/report.ts:141
Node rows whose id an earlier node row of the same load already gave: rows is how many such rows there are, and ids the distinct ids, in the order they first repeated. What became of them is LoadChoices.duplicateIds; under "refuse" a load refuses with E_DUPLICATE_ID and a report counts them here. Counted for CSV and JSON node records; a graph file (GraphML, GEXF, GML, ...) has a repeated id folded by its parser before the element sees it, so it is not counted.
ids ​
readonlyids: readonly (string|number)[]
rows ​
readonlyrows:number
edgeIdentity ​
readonlyedgeIdentity:object
Defined in: graphty-element/src/data/report.ts:78
How a set, a style layer or a saved reference will find the edges this load stored again: by the file's own edge id, or, without one, by position among the edges of the same pair. A reference by position matches a different edge if a later file lists that pair's edges in another order, which is why the report says how many there are.
byId ​
readonlybyId:number
Edges stored with a file id.
byPosition ​
readonlybyPosition:number
Edges stored without one, matched by position among their pair's edges.
idPath ​
readonlyidPath:string|null
The record key file ids were read at (knownFields.edgeIdPath), or null when none is configured.
Inherited from ​
endpoints ​
readonlyendpoints:object
Defined in: graphty-element/src/data/report.ts:33
Which record keys named the endpoints, and how that was decided.
resolvedFrom ​
readonlyresolvedFrom:EndpointSpelling
Which spelling answered, or "declared" when the caller named the columns.
source ​
readonlysource:string
The JMESPath expression the source endpoint was read with.
target ​
readonlytarget:string
The JMESPath expression the target endpoint was read with.
Inherited from ​
errors ​
readonlyerrors: readonlyLoadError[]
Defined in: graphty-element/src/data/report.ts:149
Every problem the load met, in the order met, at most the source's errorLimit of them: the source's own (a GraphML or GEXF file that breaks off, a CSV row it could not read), then the records the graph refused. Empty for a clean load. A recognisable graph file that breaks off keeps what was read before the break, and its "parse-error" entry carries the line it broke on.
format ​
readonlyformat:string
Defined in: graphty-element/src/data/report.ts:31
The data source that read the file, or "records" for pushed data.
Inherited from ​
policy ​
readonlypolicy:DuplicatePolicy
Defined in: graphty-element/src/data/report.ts:64
The repeat policy that was in force.
Inherited from ​
repeated ​
readonlyrepeated:RepeatedEdgeCounts
Defined in: graphty-element/src/data/report.ts:62
What happened to the records that named a pair the graph already held.
Inherited from ​
tooLarge ​
readonlytooLarge:TooLargeDetails|null
Defined in: graphty-element/src/data/report.ts:132
The details E_TOO_LARGE would carry; null when the load fits. Always null after a real load, which refuses instead.
unmatched ​
readonlyunmatched:object
Defined in: graphty-element/src/data/report.ts:130
Edge rows naming a node no node row (nor the graph, for a merge) held, and how many distinct such names.
rows ​
readonlyrows:number
values ​
readonlyvalues:number
weights ​
readonlyweights:object
Defined in: graphty-element/src/data/report.ts:66
Where each edge's weight came from.
attribute ​
readonlyattribute:string|null
The record key weights were read from, or null when no record carried one.
resolvedFrom ​
readonlyresolvedFrom:"none"|"path"|"legacy"
"path" for the configured key, "legacy" for the value fallback, "none" for neither.