documentationfor yFiles for HTML 2.6

GroupAlgorithm

This class provides methods for automatically partitioning nodes of a graph into groups.

Inheritance Hierarchy
GroupAlgorithm

Remarks

Note: Methods of this class work with instances of Graph. To partition an IGraph into clusters use one of the following classes instead:

Partitions can be defined using edge betweenness centrality, biconnectivity, k-means clustering, hierarchical clustering or community detection algorithms like label propagation or louvain modularity.

This class also contains methods that provide clustering-related information like the average clustering coefficient, the average weighted coefficient and the modularity of a graph network.

Definitions

  • Betweenness centrality is a measure for how often a node lies on a shortest path between each pair of nodes in the graph.
  • Biconnected graph is a graph that has no cut vertex or articulation point (i.e., a node whose removal disconnects the graph).
  • K-means clustering algorithm partitions the nodes of a graph into k-clusters based on their positions on the plane and a given distance metric.
  • Hierarchical clustering creates a hierarchy of clusters in a bottom-to-top approach based on some distance metric and linkage.
  • Label Propagation algorithm iteratively assigns a label to each node. The label of a node is set to the most frequent label among its neighbors.

    Our implementation is based on the description in: "Near linear time algorithm to detect community structures in large-scale networks" by U. N. Raghavan, R. Albert, and S. Kumara in Phys. Rev. E 76, 036106, 2007

  • Louvain Modularity algorithm iteratively tries to construct communities by moving nodes from their current community to another until the modularity is locally optimized.

    Our implementation is based on the description in: "Fast unfolding of communities in large networks" by V.D. Blondel, J.L. Guillaume, R. Lambiotte and E. Lefebvre, in Journal of Statistical Mechanics: Theory and Experiment 2008 (10), P10008 (12pp).

  • Average clustering coefficient is the average of all the local clustering coefficient values of a graph. The local clustering coefficient of a node depends on the number of edges between its neighbors. A value of 1 indicates that the node's neighbors form a clique (i.e., there is an edge between each pair of neighbors).
  • Average weighted clustering coefficient is the average of all the local clustering coefficient values of a graph where each local value of a node is weighted by the maximum possible number of edges between its neighbors.
  • Modularity is the fraction of edges that belong to a community minus the expected fraction if these edges were distributed at random, see https://en.wikipedia.org/wiki/Modularity_(networks).

Type Details

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

Static Methods