| n_communities | R Documentation |
Get Number of Communities
n_communities(x)
x |
A cograph_communities object |
Integer count of communities
g <- igraph::make_graph("Zachary")
comm <- community_louvain(g)
n_communities(comm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.