igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] community_fastgreedy() requires integers as edge weights?


From: Gabor Csardi
Subject: Re: [igraph] community_fastgreedy() requires integers as edge weights?
Date: Wed, 9 Apr 2008 15:37:41 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hi,

i suspect that it is a bug in the Python interface, as at the C 
level it accepts real numbers.

G.

On Wed, Apr 09, 2008 at 02:32:34PM +0100, Kurt J wrote:
> Hi All,
> 
> Using the fastgreedy community detection with edge weights i get the following
> error:
> 
> 
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>       File "graphmeasures.py", line 226, in getCom
>         vcG = G.community_leading_eigenvector()
>       File "build/bdist.macosx-10.3-fat/egg/igraph/__init__.py", line 437, in
>     community_fastgreedy
>     TypeError: sequence elements must be integers
> 
> 
> If i understand the algorithm, it should be quite happy with floats.  Am I
> wrong? Is this a bug?
> 
> -Kurt J

> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help


-- 
Csardi Gabor <address@hidden>    UNIL DGM




reply via email to

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