rearrange one layer conditioned on another
the top layer
the bottom layer
if true rearrange bottomLayer
, else rearrange topLayer
set the base Twolayer for this operator
Greedy will first call its base operator, and the greedily swap nodes to minimize edge crossings. To only greedily minimize edge crossings, set base to a no op.
(default: noop)
get the current base operator
set whether this operator should scan to find swaps.
Using the scan method takes longer (quadratic in layer size, versus linear), but produces fewer crossings.
(default: false
)
get the current scan setting
a Twolayer that greedily swaps nodes
Create with twolayerGreedy.