Hello,

I wanted to manipulate a graph (removing/adding vertice) but keeping
the general structure with option save_pos
.
Here is a little example to illustrate:
gg=Graph()
gg.add_cycle(range(5))
gg.plot(save_pos=True)

Then I delete vertex 1 and add it again, stupid example.
gg.delete_vertex(1)
gg.add_path([0,1, 2])
gg.plot()

Now vertex 1 was added at a completely random position.
For more complex graphs the result looks terrible.
Could it be possible that in the case positions of known vertice are
saved, positions of new vertice are optimized as it's the case when
nothing was saved?

Phil

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to