Skip to content

NetworkGraph

Defined in: network/graph.ts:60

Network graph: directed-edge SoA for rendering + CSR for traversal.

csr: CSR

Defined in: network/graph.ts:71

Undirected adjacency for layout/traversal.


directed: boolean

Defined in: network/graph.ts:85

Whether links render with arrowheads.


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: number

Defined in: network/graph.ts:61


positions: Float32Array

Defined in: network/graph.ts:69

Interleaved node positions [x, y, ...], length 2 * nodeCount; filled by layout.


source: Uint32Array

Defined in: network/graph.ts:64

Directed edge endpoints (node indices), length edgeCount.


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: Uint32Array

Defined in: network/graph.ts:65


weight: Float32Array

Defined in: network/graph.ts:67

Per-edge weight (flow), length edgeCount.