> * Tamás Nepusz <[email protected]> [2012-03-21 21:07:23 +0100]:
>
> Unless you are using igraph 0.6, you were probably bitten by the
> off-by-one indexing trap: node indices in igraph start from zero, but
> which() returns 1-based indexes, so you have to subtract 1 from the
> result of which().

YAY! thanks, this did the trick.
indeed, I am using

Package:              igraph
Version:              0.5.5-4
Date:                 Dec 12 , 2011
Title:                Network analysis and visualization
Author:               Gabor Csardi <[email protected]>
Maintainer:           Gabor Csardi <[email protected]>

Gabor, any chance you might consider releasing a newer version?
thanks!

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://www.memritv.org http://mideasttruth.com
http://palestinefacts.org http://thereligionofpeace.com http://ffii.org
Live Lisp and prosper.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to