documentationfor yFiles for HTML 2.6

CentralityAlgorithm

This class provides methods to determine various centrality indices of nodes or edges of a graph.

Inheritance Hierarchy
CentralityAlgorithm

Remarks

Note: Methods of this class work with instances of Graph. To calculate centrality measures for IGraph instances use one of the following classes instead:

Centrality indices serve to quantify an intuitive feeling that in most networks some nodes or edges are "more central" than others. The provided methods assign a double value to each node or edge of a graph that represents its centrality. The higher an assigned value, the more central the element is considered by the algorithm.

Also, this class provides convenience methods that normalize the returned centrality values such that they lie within the interval [0,1].

Definitions

  • Betweenness centrality is a measure for how often a node/edge lies on a shortest path between each pair of nodes in the graph.
  • Closeness centrality is the reciprocal of the sum of shortest path distances of a node to all other nodes in the graph.
  • Graph centrality is the reciprocal of the maximum of all shortest path distances from a node to all other nodes in the graph.
  • Degree centrality is the number of the incoming, outgoing or overall edges incident to a node (measures incoming, outgoing and overall degree).
  • Weight centrality measures the weight associated with incoming, outgoing, or all edges of a node.
  • Eigenvector centrality measures the influence of a node by means of a dominant eigenvector of the graph's adjacency matrix.
  • Page rank measures the relative importance of a node in the graph which is determined based on the edges adjacent to a node. The basic idea is that nodes that are linked to by many other nodes are important.

Type Details

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

Static Methods