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.
Properties
Section titled “Properties”edgeCount
Section titled “edgeCount”edgeCount:
number
Defined in: network/force.ts:11
nodeCount
Section titled “nodeCount”nodeCount:
number
Defined in: network/force.ts:10
positions
Section titled “positions”positions:
Float32Array
Defined in: network/force.ts:15
Interleaved [x, y, …], length 2 * nodeCount; mutated in place by the layout.
source
Section titled “source”source:
Uint32Array
Defined in: network/force.ts:12
target
Section titled “target”target:
Uint32Array
Defined in: network/force.ts:13