Skip to content

BuildGraphInput

Defined in: network/graph.ts:88

optional directed?: boolean

Defined in: network/graph.ts:100

Defaults to false (undirected).


nodeCount: number

Defined in: network/graph.ts:89


optional nodeFlow?: ArrayLike<number>

Defined in: network/graph.ts:98

Optional per-node flow (length must equal nodeCount) — a model quantity (e.g. Infomap visit rates) the app computes. Exposed as NetworkGraph.flow and usable for nodeRadius sizing.


source: ArrayLike<number>

Defined in: network/graph.ts:90


target: ArrayLike<number>

Defined in: network/graph.ts:91


optional weight?: ArrayLike<number>

Defined in: network/graph.ts:93

Optional per-edge weight; defaults to 1.