Skip to content

BuildGraphInput

Defined in: network/graph.ts:164

optional directed?: boolean

Defined in: network/graph.ts:176

Defaults to false (undirected).


nodeCount: number

Defined in: network/graph.ts:165


optional nodeFlow?: ArrayLike<number>

Defined in: network/graph.ts:174

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


target: ArrayLike<number>

Defined in: network/graph.ts:167


optional weight?: ArrayLike<number>

Defined in: network/graph.ts:169

Optional per-edge weight; defaults to 1.