
Last chance! 50% off unlimited learning
Sale ends in
fastgreedy.community(graph, merges=TRUE, modularity=TRUE,
membership=TRUE, weights=E(graph)$weight)
NULL
, then a numeric vector of edge
weights. The length must match the number of edges in the graph.
By default the weight
fastgreedy.community
returns a communities
object, please see the communities
manual page for
details.communities
for extracting the results.
See also walktrap.community
,
spinglass.community
,
leading.eigenvector.community
and
edge.betweenness.community
for other methods.g <- graph.full(5) %du% graph.full(5) %du% graph.full(5)
g <- add.edges(g, c(1,6, 1,11, 6, 11))
fc <- fastgreedy.community(g)
membership(fc)
sizes(fc)
Run the code above in your browser using DataLab