powered by
Number of shortest paths passing through each node. Unlike betweenness, does not normalize by the total number of shortest paths.
centrality_stress(x, ...)
Named numeric vector of stress centrality values.
Network input (matrix, igraph, network, cograph_network, tna object).
Additional arguments passed to centrality.
centrality
centrality for computing multiple measures at once, centrality_betweenness for the normalized variant.
centrality_betweenness
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_stress(adj)
Run the code above in your browser using DataLab