brandes.betweenness.centrality {RBGL} | R Documentation |
Compute betweenness centrality for an undirected graph
brandes.betweenness.centrality(g)
g |
an instance of the graph class with edgemode
“undirected” |
brandes.betweenness.centrality
computes the betweenness centrality of
each vertex or each edge in the graph.
You can find the definitions of betweenness centrality for vertex and edges and the details of the algorithm in
the documentation on brandes betweenness centrality in Boost Graph Library.
A list of
betweenness.centrality.vertices |
betweenness centrality of each vertex |
betweenness.centrality.edges |
betweenness centrality of each edge |
relative.betweenness.centrality.vertices |
relative betweenness centrality of each vertex |
dominance |
maximum betweenness of any point in the graph |
Li Long <li.long@isb-sib.ch>
Boost Graph Library by Siek et al.
coex <- fromGXL(file(system.file("XML/conn.gxl",package="RBGL"))) coex@edgemode <- "undirected" brandes.betweenness.centrality(coex)