The hierarchical graph maintains a tree of all nodes, it's the hierarchy and a in-view flag for each. Note that 'view' means something else than for GraphView
.
A node in the hierarchy view means it is visible and none of its ancestors or descendants are. If this node is expanded, it's children become 'in-view'. If it is retracted, its parent becomes 'in-view'. The hierarchy view can be modified with expand()
, retract()
, resetViewToLeaves()
, resetViewToTopNodes()
and resetViewToLevel()
. Note that the nodes and edges returns by getNodes()
or getEdges()
use only nodes in the current view. To get all nodes in the hierarchy, see getNodesTree()
.
@author Mathieu Bastian
@see GraphModel
|
|