harmonic_centrality {CINNA}R Documentation

Harmonic Centrality

Description

This function computes Harmonic Centrality. The harmonic metric defines as the denormalized reciprocal of the harmonic mean of all distances.

Usage

harmonic_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, “out” for out-degree, “in” for in-degree or “total” for the sum of the two. For undirected graphs this argument is ignored. “all” is a synonym of “total”.

weights

Numeric vector indicating weights of the edges

Value

a vector including centrality values for each node

Author(s)

Minoo Ashtiani, Mehdi Mirzaie, Mohieddin Jafari

References

BOLDI, P. & VIGNA, S. 2014. Axioms for centrality. Internet Mathematics, 00-00.

MARCHIORI, M. & LATORA, V. 2000. Harmony in the small-world. Physica A: Statistical Mechanics and its Applications, 285, 539-546.

OPSAHL, T., AGNEESSENS, F. & SKVORETZ, J. 2010. Node centrality in weighted networks: Generalizing degree and shortest paths. Social Networks, 32, 245-251.

OPSAHL, T. 2010. Closeness centrality in networks with disconnected components (http://toreopsahl.com/2010/03/20/closeness-centrality-in-networks-with-disconnected-components/)

Examples


data(zachary)

harmonic_centrality(zachary)


[Package CINNA version 1.1.55 Index]