powered by
Sum of 1/d(v,w) normalized by (n-1). Variant of closeness using harmonic mean of distances.
centrality_gilschmidt(x, mode = "all", ...)
Named numeric vector of Gil-Schmidt power index values.
Network input (matrix, igraph, network, cograph_network, tna object).
For directed networks: "all" (default), "in", or "out".
"all"
"in"
"out"
Additional arguments passed to centrality (e.g., normalized, weighted, directed).
centrality
normalized
weighted
directed
centrality for computing multiple measures at once, centrality_harmonic for a related measure.
centrality_harmonic
adj <- matrix(c(0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0), 4, 4) rownames(adj) <- colnames(adj) <- c("A", "B", "C", "D") centrality_gilschmidt(adj)
Run the code above in your browser using DataLab