|
From: | Matthew Walker |
Subject: | [igraph] graphopt in python |
Date: | Wed, 4 Aug 2010 14:32:19 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 |
Hi,I was surprised to see that the graphopt layout code in python was missing the ability to pass a seed. Attached is a "context diff" of src/graphopt.c. All I did was copy the seed-related code from igraph_layout_grid_fruchterman_reingold() and now seeding graphopt seems to work happily too.
I hope this is useful. If I haven't done a good job with the "diff", please tell me what would be better.
Cheers, Matthew
graphobject.c.diff
Description: graphobject.c.diff
[Prev in Thread] | Current Thread | [Next in Thread] |