igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] missing links of subgraphs


From: Tamás Nepusz
Subject: Re: [igraph] missing links of subgraphs
Date: Sat, 17 Nov 2012 21:05:17 +0100

Hi,

Sorry, I couldn't reproduce your issue with my test graphs so would it be 
possible to send me an example graph on which you encountered this problem?

Best,
Tamas

On 17 Nov 2012, at 17:11, Matteo Orrù <address@hidden> wrote:

> Hi Tamás,
> 
> Thank you for your prompt answer.
> 
> You are absolutely right, I had to write some other lines of code.
> 
> First I apply fastgreedy.community to the graph I called g_n1.
> This is a connected and undirected graph.
> Then I apply communities to the result of fastgreedy.community.
> Here there is the instruction I use to obtain fg_communities.
> 
> fg_communities <- communities(fastgreedy.community(g_n1))
> 
> This way I obtain the list of vertices belonging to each community and
> I store it in fg_communities.
> 
> I need to loop over the communities in order to extract the subgraph
> associated to each of them.
> 
> So the instruction that follows:
> 
> sub_graph <- induced.subgraph(graph=g_n1, v=unlist(fg_communities[k]))
> 
> is aimed at store in the variable sub_graph the subgraph associated to
> the commuty in position number k.
> 
> I hope to have been more clear in my explanation.
> 
> Thank you again.
> 
> Best,
> 
> Matteo
> 
> 2012/11/17 Tamás Nepusz <address@hidden>:
>> Hi,
>> 
>>> sub_graph <- induced.subgraph(graph=g_n1, v=unlist(fg_communities[k]))
>> Can you let us know what does fg_communities contain when you issue this 
>> command? Even better, can you send us a small, self-contained example that 
>> reproduces the problem?
>> 
>> Best,
>> Tamas
>> 
>> 
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
> 
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help




reply via email to

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