powered by
Girvan-Newman algorithm. Iteratively removes edges with highest betweenness centrality to reveal community structure.
community_edge_betweenness( x, weights = NULL, directed = TRUE, edge.betweenness = TRUE, merges = TRUE, bridges = TRUE, modularity = TRUE, membership = TRUE, ... )com_eb( x, weights = NULL, directed = TRUE, edge.betweenness = TRUE, merges = TRUE, bridges = TRUE, modularity = TRUE, membership = TRUE, ... )
com_eb( x, weights = NULL, directed = TRUE, edge.betweenness = TRUE, merges = TRUE, bridges = TRUE, modularity = TRUE, membership = TRUE, ... )
A cograph_communities object
cograph_communities
A cograph_communities object. See detect_communities.
detect_communities
Network input
Edge weights. NULL uses network weights, NA for unweighted.
Logical; treat graph as directed? Default TRUE.
Logical; return edge betweenness values? Default TRUE.
Logical; return merge matrix? Default TRUE.
Logical; return bridge edges? Default TRUE.
Logical; return modularity scores? Default TRUE.
Logical; return membership vector? Default TRUE.
Additional arguments passed to to_igraph
to_igraph
Girvan, M., & Newman, M.E.J. (2002). Community structure in social and biological networks. PNAS, 99(12), 7821-7826.
g <- igraph::make_graph("Zachary") comm <- community_edge_betweenness(g) igraph::membership(comm) net <- as_cograph(matrix(runif(25), 5, 5)) com_eb(net)
Run the code above in your browser using DataLab