Represents a node of the dendrogram which is a binary tree of clusters after HierarchicalClustering.
Remarks
A dendrogram node is a representation of a cluster.
The dendrogram is created using the agglomerative strategy (i.e., a bottom-up approach) based on the following steps:
- Initially (i.e., at level
0
), each node comprises its own cluster. At this point, each node of the original graph (the one that will be clustered) is mapped to one of the dendrogram's leaf nodes. - At each step, pairs of clusters are merged while moving up the hierarchy. In this case, a new dendrogram node is created and the corresponding dissimilarity value between the two merged clusters can be obtained using dissimilarityValue. The dissimilarity values are monotonously increasing starting from zero which corresponds to the leaf nodes of the dendrogram.
- The algorithm continues until all nodes belong to the same cluster. At this point, the root of the dendrogram is reached and can be obtained using dendrogramRoot.
The dendrogram is a binary tree that is directed from the root to the leaves. Moving from a node to its children effectively represents a split of the node's cluster into two smaller clusters. Moving from a child to its parent represents merging the child's cluster with another cluster to form a larger one.
For each node of the dendrogram, it is possible to retrieve the set of nodes of the original graph that belong to this dendrogram node using clusterNodes. Only the leaf nodes of the dendrogram actually represent a node of the original graph. This means that for all other inner nodes of the dendrogram, the original node is null
.
Type Details
- yfiles module
- view-layout-bridge
- yfiles-umd modules
- view-layout-bridge
- Legacy UMD name
- yfiles.analysis.DendrogramNode
See Also
Properties
Gets the children of this node.
Remarks
This represents smaller clusters that are combined to form the cluster this node represents.
Leaf nodes have no children.
See Also
Gets the INodes in the graph which belong to the cluster which is represented by this DendrogramNode.
Remarks
Gets the dissimilarity value associated with this node.
Remarks
The dissimilarity value is a measure of how "close" the child clusters are to each other, based on the chosen metric and linkage.
Leaf nodes, that is, clusters containing only a single node, have a dissimilarityValue of 0
.
Gets this node's level index in the dendrogram.
Remarks
0
. The level index increases downwards from the root to the leaves.Gets the INode in the graph which is associated with this dendrogram node.
Remarks
Gets the parent of the current node.
Remarks
This represents the next larger cluster containing the same nodes.
The dendrogram root node has no parent.