[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] fastgreedy.community fails on Zachary karate club data set
From: |
Arun |
Subject: |
Re: [igraph] fastgreedy.community fails on Zachary karate club data set |
Date: |
Tue, 25 Jan 2011 23:56:01 -0600 |
As the error message says, the FastGreedy algorithm only works on
simple graphs (i.e. graphs with no self-loops or multi-edges). Your
version of the Karate graph most likely has duplicate edges or
self-loops.
The Karate network available from Mark Newman's website
(http://www-personal.umich.edu/~mejn/netdata/), has only 78 edges, I
think. From your output, however, your Karate network has 154 edges.
Check your data and remove self-loops and duplicate edges. Fast
greedy should work after that. Also, see the igraph.Graph.simplify()
method if you want to simplify quickly and avoid editing the
underlying dataset.
On Tue, Jan 25, 2011 at 7:23 PM, Liang Wang <address@hidden> 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] new user question, robert schaefer, 2011/01/25
- Re: [igraph] new user question, Gang Su, 2011/01/25
- Re: [igraph] new user question, Tamas Nepusz, 2011/01/25
- Re: [igraph] new user question, robert schaefer, 2011/01/25
- Re: [igraph] new user question, Tamás Nepusz, 2011/01/25
- Re: [igraph] new user question, robert schaefer, 2011/01/25
- [igraph] fastgreedy.community fails on Zachary karate club data set, Liang Wang, 2011/01/25
- Re: [igraph] fastgreedy.community fails on Zachary karate club data set,
Arun <=
- Re: [igraph] fastgreedy.community fails on Zachary karate club data set, Tamás Nepusz, 2011/01/26
- Re: [igraph] fastgreedy.community fails on Zachary karate club data set, Moses Boudourides, 2011/01/26
- Re: [igraph] fastgreedy.community fails on Zachary karate club data set, Liang Wang, 2011/01/26
Re: [igraph] new user question, Gábor Csárdi, 2011/01/25