|
From: | patricia |
Subject: | Re: [igraph] : Infomap |
Date: | Thu, 27 Nov 2014 02:46:54 +0300 |
Thank you for the explanation, but please explain me how to do the following, step by step; for I am beginning to study community detection algorithms now and do not have much practice in programming. As explained earlier, I want to access the vertices of each of the communities identified by the Infomap and then check the labels for all vertices contained within each community. The graph I am using consists of 150 nodes, each of which has an attribute called "label1" which can assume the following values: 1, 2, or 3. When analyzing the values of "label1" within a community I need to calculate the proportion of different classes contained within the analyzed community, and need to do this for all communities found. example: Suppose a generic community: Community 1 - has 8 vertices, VERTICES LABEL1 V1 1 V2 1 V3 2 V4 2 V5 2 V6 2 V7 2 V8 3 LABEL1% = 1 => 0:25 LABEL1% = 2 => 0625 LABEL1% = 3 => 0125 Regards, Patricia Date: Thu, 27 Nov 2014 01:18:19 +0330 From: address@hidden To: address@hidden Subject: Re: [igraph] : Infomap Hi, I'm not sure , I understand the question right or not but if you want to access the vertices in each community using R you could do this : please consider this example : karate<- graph.famous("Zachary") infokarate <- infomap.community(karate) V(karate)$name=V(karate) V(karate)[membership(infokarate)==1] # vertices within community 1 and by label if you mean one of the attribute of the vertices : V(karate)[membership(infokarate)==1] $name Regards, fatemeh On Thu, Nov 27, 2014 at 12:46 AM, patricia <address@hidden> wrote:
regards F..A_______________________________________________ igraph-help mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/igraph-help |
[Prev in Thread] | Current Thread | [Next in Thread] |