igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] : Infomap


From: Fatemeh a
Subject: Re: [igraph] : Infomap
Date: Thu, 27 Nov 2014 01:18:19 +0330

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




--
regards
F..A

reply via email to

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