Hi, you also need to specify the random seed via set.seed.

That said, you still might get different layouts with different igraph
versions, because we are trying to improve the algorithms. If setting the
seed does not work, then you can generate the layout in the old version,
save the coordinates and then use them with the new version.

Unfortunately R does not really support using different versions of the
same package at the same time.

Best,
Gabor


On Tue, Feb 11, 2014 at 10:35 AM, HIGUCHI Koichi
<[email protected]>wrote:

> Does anybody have any ideas?
>
> Thanks.
>
> 2013-08-29 15:32 GMT+09:00 HIGUCHI Koichi <[email protected]>:
> > Hello.
> >
> > I am using igraph R package and moving from igraph 0.5.5 to 0.6.5.
> >
> > But I found that I can't get the same result from
> > layout.fruchterman.reingold function of 0.6.5 even if I specified the
> > same network object and the same starting positions. The output
> > layouts are different between 0.5.5 and 0.6.5.
> >
> > Is there any way to reproduce the same result as 0.5.5 using 0.6.5??
> >
> > Here is my test code:
> > http://koichi.nihon.to/psnl/tmp/net_test.r
> >
> > igraph 0.5.5 result:
> > http://koichi.nihon.to/psnl/tmp/055.png
> >
> > igraph 0.6.5 result:
> > http://koichi.nihon.to/psnl/tmp/065.png
> >
> > New layout is not bad at all, but I would like to have the same
> > results when I input the same data.
> >
> > Thank you! And sorry for my poor English.
> >
> > BTW, I am developing a content analysis (text data mining) software
> > using the igraph package. Igraph package is really useful and nice
> > software! Thank you very much for the effort!
> > http://khc.sourceforge.net/en/gallery/
> >
> > Koichi, Higuchi
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to