documentationfor yFiles for HTML 2.6

NodeAggregationAlgorithm

This class realizes an algorithm that aggregates nodes and creates a hierarchical clustering structure subject to user-specified constraints like the type of nodes as well as the preferred minimum and maximum size of a cluster.

Inheritance Hierarchy
NodeAggregationAlgorithm

Remarks

The result of the aggregation can be used to (interactively) visualize parts of large graphs.

Note that the resulting clustering structure corresponds to a directed rooted tree which we encode by means of a set of AggregationInfo instances. More precisely, each node of the original graph is mapped to a unique AggregationInfo instance. This mapping is stored in the INodeMap that is passed to method aggregate. Each AggregationInfo has a reference to its parent which induces a directed tree structure. There is always exactly one AggregationInfo without a parent that represents the root of the tree. Property nodesOnlyOnLeaves allows to specify whether nodes are only mapped to leaves of the tree structure or if they can also be mapped to inner nodes.

Property aggregationPolicy allows to specify whether the algorithm should consider structural properties (i.e., considering the connectivity) for the aggregation or geometric properties (i.e., the distance between nodes). For the second policy, the coordinates of the nodes have to be specified by the user by means of a IDataProvider registered with key NODE_CENTER_DP_KEY.

Default Values of Properties

aggregationPolicySTRUCTURAL
maximumClusterSize10
maximumDuration<code>0x7FFFFFFF</code>The algorithm runs unrestricted.
minimumClusterSize5
nodesOnlyOnLeavestrueNodes are only mapped to leaves of the aggregation tree.
nodeTypeHandlingPolicyIGNORE

Type Details

yfiles module
algorithms
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.algorithms.NodeAggregation

Constructors

Properties

Methods

Constants