View source: R/core identification.R
vertex.communities | R Documentation |
Memberships for several community detection algorithms and a meta community structure based on all communities.
vertex.communities(graph, weight = 1/E(graph)$weight)
graph |
a weighted graph from igraph |
weight |
the edge weights. Larger values are stronger ties. |
a data.frame with community memberships
data(den)
den.corp <- has.tags(den, "Corporation", res = "relations", silent = TRUE)
graph.corp <- elite.network.org(den.corp)
graph.corp <- as.undirected(graph.corp)
vc <- vertex.communities(graph.corp)
head(vc)
table(table(vc$"Meta louvain"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.