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.
const layout = sugiyama().decross(decrossTwoLayer().order(twolayerOpt())); Copy
const layout = sugiyama().decross(decrossTwoLayer().order(twolayerOpt()));
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.