Skip to content

seedPositions

seedPositions(graph, width, height): void

Defined in: network/force.ts:137

Seed node positions deterministically as a phyllotaxis (“sunflower”) disc centred on the viewport — a good, reproducible starting distribution for ForceLayout when a graph arrives without coordinates (no two nodes coincident, no RNG).

LayoutGraph

number

number

void