Learn R Programming

cograph (version 2.7.2)

centrality_random_walk: Random Walk Centrality

Description

Inverse sum of random walk distances. Requires a connected graph.

Usage

centrality_random_walk(x, ...)

Value

Named numeric vector of random walk centrality values.

Arguments

x

Network input (matrix, igraph, network, cograph_network, tna object).

...

Additional arguments passed to centrality.

See Also

centrality for computing multiple measures at once.

Examples

Run this code
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)

Run the code above in your browser using DataLab