Tree Layout Demo
Demonstrates the tree layout style and the different ways in which this layout can arrange
a node and its children.
With tree layout, each node can have a separate
which is responsible for the arrangement of its children in a certain style.
Configure the Node Placers
You can configure the node placer of the selected nodes in the right side panel. Changing
an option in the panel immediately updates the layout of the graph. A preview demonstrates
the chosen subtree style in a smaller context.
- Some node placers offer rotation and mirroring of the subtree.
marking for a single node by
on it. They will show their effect when their parent node has
is used for nodes without an explicit assignment.
is a regular tree which is arranged using a combination of
for each subtree.
has the same structure as the
but is arranged only using
to place the categories in columns and arranges the nodes of each category stacked
is not a tree and uses the
to prepare the graph for
. In this sample, non-tree edges are routed with organic style.
for some sub-trees to get a compact layout.
Change the Graph
Changing the graph in this demo will keep its tree structure intact, and each change will
trigger a layout calculation.
- Add nodes (and edges) by dragging from an unselected node.
Removing selected nodes will remove their whole subtrees. The root node cannot be
- Resize nodes to see how the layout changes.
Change the order of children by adding number labels using the