wiener_index_centrality function

Wiener Index Centrality

Wiener Index Centrality

This function computes the Wiener Index Centrality for nodes in a network. The Wiener index is a measure of centrality that computes the sum of all shortest paths between a node and all other related nodes in the graph. In essence, it is similar to closeness centrality, but without taking the reciprocal, resulting in a measure with the opposite meaning.

wiener_index_centrality( x, vids = V(x), mode = c("all", "out", "in"), weights = NULL )

Arguments

  • x: An igraph or a network object.
  • vids: Nodes to be considered in the calculation.
  • mode: A character value indicating whether the shortest paths "in" or "out" of the nodes in directed graphs should be considered. For undirected graphs, "all" is used.
  • weights: Numeric vector indicating weights of the edges.

Returns

A numeric vector including the centrality values for each node. The centrality values represent the Wiener Index Centrality measure for each node in the network.

Examples

data(zachary) wiener_index_centrality(zachary)

References

Scardoni, G. and Carlo Laudanna, C.B.M.C. (2011). Network centralities for Cytoscape. University of Verona.

Author(s)

Minoo Ashtiani, Mehdi Mirzaie, Mohieddin Jafari

  • Maintainer: Minoo Ashtiani
  • License: GPL-3
  • Last published: 2023-08-08

Useful links