Skip to content

Function: hierarchicalBundle() ​

ts
function hierarchicalBundle(positions, graph, options?): (LinkRoute | undefined)[];

Hierarchical edge bundling: one entry per link (the indices of graph.source), a 'spline' route for every link that is bundled and undefined for a link that stays straight. See the module comment for the hierarchy, the curve and which links stay straight. Without a hierarchy (no groups and no parents) every entry is undefined.

Parameters ​

ParameterType
positionsBundlePositions
graphBundleGraph
optionsHierarchicalBundleOptions

Returns ​

(LinkRoute | undefined)[]

Released under the MIT License.