Hierarchical Nesting (Incremental)
This demo shows how to nicely lay out the newly loaded nodes when expanding folded groups
in graph.
Each time a folded group is expanded for the first time, all of its child nodes are
retrieved and then marked as incremental using
HierarchicalLayoutData.incrementalNodes. The
from-sketch mode of the layout
algorithm then ensures that the currently visible part of the graph is well-organized
while remaining similar to the previous arrangement.
Things to Try
-
Expand or collapse a group node with the
+
or
-
button.
Demos
See the Hierarchical Nesting Demo
for a hierarchical nested graph built on a pre-defined set of nodes without subsequent
node retrieval.