powered by
Betweenness based on electrical current flow rather than shortest paths. Uses the Laplacian pseudoinverse. Requires a connected graph.
centrality_current_flow_betweenness(x, ...)
Named numeric vector of current flow betweenness values.
Network input (matrix, igraph, network, cograph_network, tna object).
Additional arguments passed to centrality (e.g., weighted, directed).
centrality
weighted
directed
centrality for computing multiple measures at once, centrality_betweenness for the shortest-path variant.
centrality_betweenness
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3) rownames(adj) <- colnames(adj) <- c("A", "B", "C") centrality_current_flow_betweenness(adj)
Run the code above in your browser using DataLab