| membership | R Documentation |
Extracts a named membership vector from a communities result.
Works with both cograph_communities data frames and
igraph communities objects.
membership(x)
x |
A cograph_communities or igraph communities object. |
Named integer vector of community assignments.
g <- igraph::make_graph("Zachary")
comm <- community_louvain(g)
membership(comm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.