ForceParams
Defined in: network/force.ts:24
Force-directed layout core (sub-issue #102, epic #98). Operates directly on a LayoutGraph’s positions buffer + edge list — pure typed-array math, no DOM, so it runs unchanged on the main thread or inside a Web Worker (the worker + SharedArrayBuffer transport land in a later slice). Repulsion is Barnes-Hut O(n log n) via BarnesHutTree.
Properties
Section titled “Properties”alpha:
number
Defined in: network/force.ts:37
Integration step size.
attraction
Section titled “attraction”attraction:
number
Defined in: network/force.ts:28
Spring attraction strength along edges.
centering
Section titled “centering”centering:
number
Defined in: network/force.ts:35
Positional gravity: each node is pulled toward the layout centroid ∝ its distance. Besides keeping the layout from drifting, this is the main knob against loosely-connected clusters flying far apart — unbounded pairwise repulsion otherwise pushes whole clusters out of frame (a single bridge edge can’t pull them back). Higher = tighter inter-cluster spacing.
repulsion
Section titled “repulsion”repulsion:
number
Defined in: network/force.ts:26
Repulsion (charge) strength between all node pairs.
theta:
number
Defined in: network/force.ts:39
Barnes-Hut opening angle θ — 0 is exact O(n²); ~0.9 trades a little accuracy for speed.