clu <- clusters(g) max_clu <- which.max(clu$csize) which(clu$membership == max_clu)
For equal largest cluster sizes it just takes the first largest cluster. Gabor On Sat, Oct 11, 2014 at 5:43 AM, Ragia Ibrahim <[email protected]> wrote: > > Hi, > no.clusters(G) gets the clusters of the graph and from it I can get the max > cluster. but Can I get what nodes involves in that cluster? what are there > Id's .attributes. > many thanks > Ragia > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
