Represents clusters in the graph as computed by LabelPropagationClustering.
Inheritance Hierarchy
LabelPropagationClusteringResult
Type Details
- yfiles module
- view-layout-bridge
- yfiles-umd modules
- view-layout-bridge
- Legacy UMD name
- yfiles.analysis.LabelPropagationClusteringResult
Properties
Gets a collection of all clusters in the graph.
Gets a mapping from each node to its label.
Remarks
The value corresponds to the calculated (final) label. For nodes which are not associated with a cluster the index is
-1
. Also, if a subgraph is specified, all nodes that are not part of the subgraph have the label -1
.The labels which are considered in this algorithms are internally assigned integer values. They have nothing to do with the marking objects which are commonly referred to as "label" in yFiles for HTML.
Gets a value which estimates the quality of the partition of the nodes into the clusters.
Remarks
The modularity value estimates the quality of the partition of the nodes into the given communities and is a value between
[-1/2,1]
. High modularity values denote that nodes with dense connections are placed in the same community, while nodes with sparse connections are assigned to different communities.Gets a mapping from each node to its cluster.