@graphty/graphty-element / format / DerivedGraph
Interface: DerivedGraph ​
Defined in: graph-format/dist/src/types/snapshot.d.ts:274
A new snapshot produced from an existing one by a structural mapping the caller specifies, plus index maps back to the source (design section 7.3). Never cached by the format. Every map is null when the corresponding index space is unchanged; edgeRemap maps every merged edge to its survivor so a per-edge result of the derived graph writes back onto source edges with out[e] = vec[edgeRemap[e]], and edgeRemap[edgeOrigin[d]] === d for every derived edge d.
Properties ​
blockSizes ​
readonlyblockSizes:U32|null
Defined in: graph-format/dist/src/types/snapshot.d.ts:295
contract only: source nodes per new node; null otherwise.
edgeOrigin ​
readonlyedgeOrigin:U32|null
Defined in: graph-format/dist/src/types/snapshot.d.ts:286
New edge index -> source edge index (a merged edge: its SURVIVOR's source index, never INVALID_INDEX); null when unchanged.
edgeRemap ​
readonlyedgeRemap:U32|null
Defined in: graph-format/dist/src/types/snapshot.d.ts:293
Source edge index -> new index; a merged / collapsed edge maps to its SURVIVOR, a dropped edge to INVALID_INDEX; null when unchanged.
nodeOrigin ​
readonlynodeOrigin:U32|null
Defined in: graph-format/dist/src/types/snapshot.d.ts:281
New node index -> source node index (contract: the LOWEST source index of the block); null when the node space is unchanged.
nodeRemap ​
readonlynodeRemap:U32|null
Defined in: graph-format/dist/src/types/snapshot.d.ts:288
Source node index -> new index (contract: the block) or INVALID_INDEX (dropped); null when unchanged.
report ​
readonlyreport:object
Defined in: graph-format/dist/src/types/snapshot.d.ts:297
How many source edges were dropped and how many merged.
droppedEdges ​
readonlydroppedEdges:number
mergedEdges ​
readonlymergedEdges:number
snapshot ​
readonlysnapshot:GraphSnapshot
Defined in: graph-format/dist/src/types/snapshot.d.ts:276
The derived snapshot; this for the identity cases (transpose / toUndirected of an undirected snapshot).