igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] nodes in the max cluster


From: Gábor Csárdi
Subject: Re: [igraph] nodes in the max cluster
Date: Sat, 11 Oct 2014 08:54:42 -0400

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 <address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]