BuildStateGraphInput
Defined in: network/state-graph.ts:21
Properties
Section titled “Properties”directed?
Section titled “directed?”
optionaldirected?:boolean
Defined in: network/state-graph.ts:42
Whether links render with arrowheads (applies to both views). Defaults to false.
nodeFlow?
Section titled “nodeFlow?”
optionalnodeFlow?:ArrayLike<number>
Defined in: network/state-graph.ts:40
Optional per-state-node flow (length stateCount) — an Infomap visit rate the app supplies.
Exposed as the state graph’s NetworkGraph.flow; the physical graph’s flow is the per-physical
sum of its state nodes’ flow.
physicalCount?
Section titled “physicalCount?”
optionalphysicalCount?:number
Defined in: network/state-graph.ts:47
Number of physical nodes. Defaults to max(stateToPhysical) + 1. Pass it when some physical node
has no state node in this slice (so the physical graph still allocates a slot for it).
source
Section titled “source”source:
ArrayLike<number>
Defined in: network/state-graph.ts:31
State-level directed edge endpoints (state-node indices), length edgeCount.
stateCount
Section titled “stateCount”stateCount:
number
Defined in: network/state-graph.ts:23
Number of state nodes.
stateToPhysical
Section titled “stateToPhysical”stateToPhysical:
ArrayLike<number>
Defined in: network/state-graph.ts:29
Per-state-node physical id, length stateCount. Physical ids must be dense in
[0, physicalCount); a physical node is a distinct id. (The synthetic generator and Infomap’s
state output both produce dense ids.)
target
Section titled “target”target:
ArrayLike<number>
Defined in: network/state-graph.ts:32
weight?
Section titled “weight?”
optionalweight?:ArrayLike<number>
Defined in: network/state-graph.ts:34
Optional per-edge weight (flow); defaults to 1.