This function and all of its descriptions have been obtained from the igraph package.
betweenness( graph, v = V(graph), directed = TRUE, weights = NULL, normalized = FALSE, ... )
The graph to analyze (an igraph graph).
The vertices for which the vertex betweenness will be calculated.
Logical, whether directed paths should be considered while determining the shortest paths.
Optional positive weight vector for calculating weighted betweenness. If the graph has a weight edge attribute, then this is used by default. Weights are used to calculate weighted shortest paths, so they are interpreted as distances.
Logical scalar, whether to normalize the betweenness scores. If TRUE, then the results are normalized.
Additional arguments according to the original
betweenness function in the package igraph.
A numeric vector with the betweenness score for each vertex in v.