create a default TwolayerOpt
This is a Twolayer that optimally removes crossings between the two layers. Because this is local, it might not fully remove link crossings that decrossOpt will, but it can run on larger dags and will often be faster.
Rest
const layout = sugiyama().decross(decrossTwoLayer().order(twolayerOpt())); Copy
const layout = sugiyama().decross(decrossTwoLayer().order(twolayerOpt()));
Generated using TypeDoc
create a default TwolayerOpt
This is a Twolayer that optimally removes crossings between the two layers. Because this is local, it might not fully remove link crossings that decrossOpt will, but it can run on larger dags and will often be faster.