NetworkGraph
Defined in: network/graph.ts:60
Network graph: directed-edge SoA for rendering + CSR for traversal.
Properties
Section titled “Properties”csr:
CSR
Defined in: network/graph.ts:71
Undirected adjacency for layout/traversal.
directed
Section titled “directed”directed:
boolean
Defined in: network/graph.ts:85
Whether links render with arrowheads.
edgeCount
Section titled “edgeCount”edgeCount:
number
Defined in: network/graph.ts:62
flow:
Float32Array<ArrayBufferLike> |null
Defined in: network/graph.ts:83
Per-node flow (e.g. an Infomap visit rate), length nodeCount, or null when the caller
supplied none. A model quantity the app provides via BuildGraphInput.nodeFlow — d3gl
does not derive it. Available to nodeRadius sizing as the "flow" metric.
nodeCount
Section titled “nodeCount”nodeCount:
number
Defined in: network/graph.ts:61
positions
Section titled “positions”positions:
Float32Array
Defined in: network/graph.ts:69
Interleaved node positions [x, y, ...], length 2 * nodeCount; filled by layout.
source
Section titled “source”source:
Uint32Array
Defined in: network/graph.ts:64
Directed edge endpoints (node indices), length edgeCount.
strength
Section titled “strength”strength:
Float32Array
Defined in: network/graph.ts:77
Per-node strength: the sum of incident edge weights (weighted degree), length nodeCount.
A purely structural metric derived from the edge list — a sizing input alongside
CSR.degree. (Not flow in the map-equation sense; that is NetworkGraph.flow.)
target
Section titled “target”target:
Uint32Array
Defined in: network/graph.ts:65
weight
Section titled “weight”weight:
Float32Array
Defined in: network/graph.ts:67
Per-edge weight (flow), length edgeCount.