Inverse sum of random walk distances. Requires a connected graph.
Usage
centrality_random_walk(x, ...)
Arguments
- x
Network input (matrix, igraph, network, cograph_network, tna object).
- ...
Additional arguments passed to centrality.
Value
Named numeric vector of random walk centrality values.
See also
centrality for computing multiple measures at once.
Examples
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_random_walk(adj)
#> A B C
#> 0.25 0.25 0.25