set the Aggregator for this operator
The aggregator is used to combine the indices of ancestors to provide a suitable rank for ordering. There are three built-in variants:
(default: aggWeightedMedian)
const twolayer = twolayerAgg().aggregator(aggMedian);
get the current aggregator
Generated using TypeDoc
a Twolayer that orders nodes based off aggregated ancestor indices
This is much faster than twolayerOpt, and often produces comparable or better layouts. Nodes without ancestors will be placed first to minimize the distance between nodes with common ancestors, and then to minimize rank inversions with respect to the initial ordering.
Create with twolayerAgg.