layer a graph
After calling this, every node should have a y
coordinate that satisfies
sep
.
the graph to layer
the minimum separation between nodes
height - the height after layering
set the Rank
Nodes will first be in rank order, and then in topological order attempting to minimize edge inversions.
get the current Rank.
Generated using TypeDoc
a layering that assigns every node a distinct layer
This combined with topological coordinate assignment can be thought of as an alternative to zherebko. The latter generally produces more pleasing layouts, but both are options. This layering is very fast, but it may make other steps take longer due to the many created dummy nodes.
Create with layeringTopological.