powered by
Get Number of Communities
n_communities(x)
Integer count of communities
A cograph_communities object
g <- igraph::make_graph("Zachary") comm <- community_louvain(g) n_communities(comm)
Run the code above in your browser using DataLab