[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] spinglass.community bug
From: |
Gabor Csardi |
Subject: |
Re: [igraph] spinglass.community bug |
Date: |
Sun, 27 May 2007 21:23:33 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Peter,
thanks, yes, you're right of course. It was i think corrected in 0.4.1.
Sadly enough it seems that there is another serious bug in the
0.4.1 windows R package, it cannot read any file formats with read.graph,
so there will be also a 0.4.2 release soon, maybe just for the
windows R package.
Gabor
On Sat, May 26, 2007 at 10:03:39PM -0500, address@hidden wrote:
> I think I've found a tiny but important bug in the spinglass.community
> () function in R.
> The argument is passed into the R function as `graph`, but in the
> function the following code is called:
>
> weights <- as.numeric(E(g)$weight)
>
> That should be
>
> weights <- as.numeric(E(graph)$weight)
>
> Otherwise it looks for `g` in the parent environment, which is bad.
>
> The change makes the function work for me.
>
> Thanks,
> Peter
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
--
Csardi Gabor <address@hidden> MTA RMKI, ELTE TTK