powered by
Hierarchical agglomeration using greedy modularity optimization. Produces a dendrogram of community merges.
community_fast_greedy( x, weights = NULL, merges = TRUE, modularity = TRUE, membership = TRUE, ... )com_fg( x, weights = NULL, merges = TRUE, modularity = TRUE, membership = TRUE, ... )
com_fg( x, weights = NULL, merges = TRUE, modularity = TRUE, membership = TRUE, ... )
A cograph_communities object with optional dendrogram
cograph_communities
A cograph_communities object. See detect_communities.
detect_communities
Network input
Edge weights. NULL uses network weights, NA for unweighted.
Logical; return merge matrix? Default TRUE.
Logical; return modularity scores? Default TRUE.
Logical; return membership vector? Default TRUE.
Additional arguments passed to to_igraph
to_igraph
Clauset, A., Newman, M.E.J., & Moore, C. (2004). Finding community structure in very large networks. Physical Review E, 70, 066111.
g <- igraph::make_graph("Zachary") comm <- community_fast_greedy(g) igraph::membership(comm)
Run the code above in your browser using DataLab