create a default LayeringLongestPath
This Layering operator minimizes the height of the final layout. This often results in very wide and unpleasing graphs, but is very fast. You can set if it goes LayeringLongestPath#topDown.
const layout = sugiyama().layering(layeringLongestPath().topDown(false)); Copy
const layout = sugiyama().layering(layeringLongestPath().topDown(false));
create a default LayeringLongestPath
This Layering operator minimizes the height of the final layout. This often results in very wide and unpleasing graphs, but is very fast. You can set if it goes LayeringLongestPath#topDown.