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
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help