powered by
Fraction of shortest paths passing through each node. Nodes with high betweenness act as bridges connecting different parts of the network.
centrality_betweenness(x, ...)
Named numeric vector of betweenness values.
Network input (matrix, igraph, network, cograph_network, tna object).
Additional arguments passed to centrality (e.g., normalized, weighted, directed, cutoff, invert_weights).
centrality
normalized
weighted
directed
cutoff
invert_weights
centrality for computing multiple measures at once, centrality_load for a related measure.
centrality_load
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3) rownames(adj) <- colnames(adj) <- c("A", "B", "C") centrality_betweenness(adj)
Run the code above in your browser using DataLab