Skip to content

computeLODGeometry

computeLODGeometry(tree, graph, leafRadii, leafWeight?, leafBorder?, leafColors?, radiusAggregate?): void

Defined in: network/lod.ts:744

Fill the tree’s full geometry from the settled layout, the per-leaf visual radii, and a per-leaf importance weight — computeLODPositions then computeLODStyle. The main-thread path (synchronous solve / supplied positions); the worker backend splits these passes across threads.

leafRadii is the resolved per-node radius (so aggregates respect the node sizing); leafWeight is the per-leaf importance, defaulting to graph.strength (weighted degree) — pass graph.flow or graph.csr.degree to prioritise differently.

LODTree

NetworkGraph

ArrayLike<number>

ArrayLike<number> = graph.strength

ArrayLike<number>

ArrayLike<number>

RadiusAggregate

void