igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] fastgreedy.community fails on Zachary karate club data set


From: Tamás Nepusz
Subject: Re: [igraph] fastgreedy.community fails on Zachary karate club data set
Date: Wed, 26 Jan 2011 08:27:43 +0100

Hi,

Try G <- simplify(G) to get rid of multiple edges in your graph; the karate 
club network should have only 34 vertices and 78 edges, while you have 154 
edges.

-- 
Tamas

On 26 Jan 2011, at 02:23, Liang Wang wrote:

> Hi,
>  
> When I ran fastgreedy.community algorithm on the Karate data set,  I got an 
> error message, as shown below. What am I doing wrong here?
>  
> Thanks a lot for your help.
> Liang
>  
> > G  <- read.graph('./krate0.txt',format="edgelist",directed="FALSE")
> > G
> Vertices: 34
> Edges: 154
> Directed: FALSE
> Edges:
> [0]    0 --  1
> [1]    0 --  2
> [2]    0 --  3
> [3]    0 --  4
> ....
> [150] 29 -- 33
> [151] 30 -- 33
> [152] 31 -- 33
> [153] 32 -- 33
>  
> > fc <- fastgreedy.community(G)
> Error in fastgreedy.community(G) :
>   At fast_community.c:540 : fast-greedy community finding works only on 
> simple graphs, Invalid value
> 
>  
> 
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help




reply via email to

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