[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] community clustering in python
From: |
Kurt J |
Subject: |
Re: [igraph] community clustering in python |
Date: |
Fri, 23 Nov 2007 12:44:30 +0000 |
Hi Tamas,
Thanks for the tip, however simplifying doesn't seem to help...
>>> from igraph import *
>>> G = Graph.Read('pr2graph.ml', format='graphml')
>>> G.to_undirected()
>>> sG = G.simplify()
>>> Lsv = sG.community_fastgreedy()
Bus error
-Kurt J
On Nov 23, 2007 12:31 PM, Tamas Nepusz <address@hidden> wrote:
> Hi,
>
> Have you tried simplifying the graph before starting the community
> detection? Our former implementation did not work for graphs with
> multiple or loop edges. This was corrected recently in the dev branch
> and will be released officially as igraph 0.5 in a couple of weeks
> (possibly :)). So my suggestion is:
>
> G.to_undirected()
> G.simplify()
> Lsv = G.community_fastgreedy()
>
> > Should i just be using/learning R?
> I think the error exists in the R interface as well, since they both
> use the common C core.
>
> --
> T.
>
> On 2007.11.23., at 13:23, Kurt J wrote:
>
> > Hi,
> >
> > I was hoping to experiment with some clustering using the python
> > interface to igraph. The igraph implementation of the modularity
> > optimization gives me a bus error:
> >
> >>>> G.to_undirected()
> >>>> Lsv = G.community_fastgreedy()
> > Bus error
> >
> > on Python 2.4.3
> >
> >
> >
> > Cheers,
> > -Kurt J
> >
> >
> > _______________________________________________
> > igraph-help mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>