From: Tamás Nepusz <address@hidden>
To: Help for igraph users <address@hidden>
Sent: Tue, January 25, 2011 11:27:43 PM
Subject: Re: [igraph] fastgreedy.community fails on Zachary karate club data set
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
_______________________________________________
igraph-help mailing list
address@hiddenhttp://lists.nongnu.org/mailman/listinfo/igraph-help