Members
Constants
See Also
This algorithm iteratively assigns a so-called label to each node. The label of a node is set to the most frequent label among its neighbors. If there are multiple candidates the algorithm randomly chooses one of them. In the end, all nodes with the same label belong to the same community.
Compared to the other clustering policies, the label propagation often offers very good performance. However, the results are rather unstable, i.e., small changes in the input may lead to significantly different node clusters. If stable results are important, it is recommended to select another policy.
See Also
The Louvain algorithm starts by assigning each node to its own community. Then, it iteratively tries to construct clusters by moving nodes from their current community to another until the modularity is locally optimized.
As a clustering policy, Louvain modularity offers a good trade-off between quality and performance.
See Also
Static Methods
Converts the given argument to an enum constant of this enum type.
Parameters
- value: OrganicLayoutClusteringPolicy
- The value to convert to an enum constant.
Return Value
- OrganicLayoutClusteringPolicy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
- value: OrganicLayoutClusteringPolicy
- The numeric value of an enum constant.
Return Value
- string
- The name of the enum constant.
Throws
- Exception ({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.