[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
>
- [igraph] install R-igraph in Ubuntu, Qunawei Zhang, 2014/10/07
- Re: [igraph] install R-igraph in Ubuntu, Gábor Csárdi, 2014/10/07
- [igraph] matrix and attributes, Ragia Ibrahim, 2014/10/10
- [igraph] Degree Distribution, Ragia Ibrahim, 2014/10/11
- [igraph] nodes in the max cluster, Ragia Ibrahim, 2014/10/11
- Re: [igraph] nodes in the max cluster,
Gábor Csárdi <=
- [igraph] save graph as a file, Ragia Ibrahim, 2014/10/11
- Re: [igraph] save graph as a file, Gábor Csárdi, 2014/10/11
- Re: [igraph] save graph as a file, Ragia Ibrahim, 2014/10/11
- [igraph] centralization measure, Ragia Ibrahim, 2014/10/12
- Re: [igraph] centralization measure, Tamas Nepusz, 2014/10/12
- [igraph] between different clusters, Ragia Ibrahim, 2014/10/13
- Re: [igraph] between different clusters, Gábor Csárdi, 2014/10/13
- Re: [igraph] between different clusters, Ragia Ibrahim, 2014/10/13
- Re: [igraph] Degree Distribution, Gábor Csárdi, 2014/10/11