[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] multilevel.community
From: |
joe j |
Subject: |
Re: [igraph] multilevel.community |
Date: |
Fri, 15 Jul 2011 13:31:31 +0200 |
Dear Tamas,
Thanks a lot. I've tried, but so far failed, to convert
comm$memberships into a data frame with 1. Node, 2. Hierarchy Level,
and 3. Community (block). Would you, or anyone have a suggestion?
Regards,
Joe.
On Fri, Jul 15, 2011 at 12:07 PM, Tamas Nepusz <address@hidden> wrote:
> Dear Joe,
>
> There is a hidden (yet undocumented) member of the data structure returned
> by multilevel.community called "memberships", which contains the membership
> vectors for all the levels:
>
>> library(igraph)
>> g <- graph.famous("zachary")
>> comm <- multilevel.community(g)
>> comm$memberships
>
> I don't know why it is not mentioned in the documentation of the R interface
> -- hopefully Gabor can add it soon.
>
>> 2. I also notice that only nodes that fall into a community are
>> retained
> Every node should fall into exactly one community at each level, so no nodes
> should be lost.
>
> Best,
> Tamas
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>