Hierarchic Layout with Constraints
This demo shows how to customize the assignment of the nodes to the layers (layering) and
the order of the nodes in a layer (sequencing) when using the
The layout is configured such that
node 5 follows node 4 on the same
layer. When using the default Hierarchic Layout,
node 5 is placed on the next layer.
The only configured sequence constraint is that
follows after node 4.
Click the button in the toolbar to toggle between
Hierarchic Layout with and without configured
You can copy the code snippet to configure the layout from
See the Layer Constraints Demo and the Sequence Constraints Demo
for more elaborate examples of the constraints functionality.
Constrained Layer Assignment
Constrained Node Sequencing
sections in the Developer's Guide for an in-depth discussion of the relevant concepts.