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
The rank will override the default ordering of nodes for rending top to bottom. Note that unlike layeringSimplex nodes with the same rank are not guaranteed to be on the same layer.
get the current Rank.
set whether longest path should go top down
If set to true, the longest path will start at the top, putting nodes as close to the top as possible.
(default: true
)
get whether or not this is using topDown.
Generated using TypeDoc
a Layering that minimizes the height of the final layout.
This often results in very wide and unpleasing graphs, but is very fast. The layout can go top-down or bottom-up, either assigning all roots to layer 0 or all leaves to the last layer.
Create with layeringLongestPath.