documentationfor yFiles for HTML 2.6

LayoutGroupingSupport

This class provides convenient and efficient access to the hierarchic graph structure.

Inheritance Hierarchy
LayoutGroupingSupport

Remarks

The grouping information is provided through IDataProviders registered with the graph with keys NODE_ID_DP_KEY, PARENT_NODE_ID_DP_KEY and GROUP_DP_KEY. It describes the hierarchy as a tree where a group node is the parent of the nodes that it contains.

This is an example graph that contains group nodes. The hierarchy tree of the grouped graph reveals the relationship among the nodes. The corresponding nodes have the same labels as in the grouped graph. Group nodes are considered as the parents of their content which can consist of group nodes and/or normal nodes. Top-level nodes are children of a virtual root. Leaf nodes can either be normal nodes or empty groups.

Type Details

yfiles module
algorithms
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.GroupingSupport
Once an instance of LayoutGroupingSupport is not needed anymore, it should be disposed of.
If the state of the graph changes (e.g. new nodes are added), current LayoutGroupingSupport should be disposed of and replaced by a new one.

Constructors

Properties

Methods

Static Methods