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 LABEL1V1 1V2 1V3
2V4 2V5 2V6 2V7
2V8 3
LABEL1% = 1 => 0:25LABEL1% = 2 => 0625LABEL1% = 3 => 0125
Regards,
Patricia
Date: Thu, 27 Nov 2014 01:18:19 +0330
From: [email protected]
To: [email protected]
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 <[email protected]> wrote:
Hello,
I would like your help to solve the following problem, using the Infomap
communities detection algorithm:
Suppose that after the execution of the algorithm, four communities have been
reported, for example, the first three community has vertices, second 6, third
8 and the fourth second.
I want to know, how do I access the 3 vertices (nodes) contained within the
community 1 to then access their labels of the vertices belonging to the same
community.
Example: Community 1 => V1, V2 and V3
labels:
V1 = 1;V2 = 1;V3 = 2;
Thank you
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help
--
regardsF..A
_______________________________________________
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