Skip to content

LayoutGraph

Defined in: network/force.ts:9

Minimal graph view the force core needs: node count, a directed edge list (used as undirected springs), and the positions buffer it mutates. NetworkGraph satisfies this structurally, and so does a synthetic coarse level (see ./coarsen.js) — so one force core lays out the full graph and every coarsening level without casts.

edgeCount: number

Defined in: network/force.ts:11


nodeCount: number

Defined in: network/force.ts:10


positions: Float32Array

Defined in: network/force.ts:15

Interleaved [x, y, …], length 2 * nodeCount; mutated in place by the layout.


source: Uint32Array

Defined in: network/force.ts:12


target: Uint32Array

Defined in: network/force.ts:13