Suppose G is a DiGraph.  Is there a way to change the vertex labels of
G so that they are shown when G.show() is called?  The method,
G.set_vertex() does not seem to do that.

Sample code

sage: G = DiGraph({1:{2: 2}, 2:{1:1}})
sage: G.show()
sage: G.set_vertex(1,4)
sage: G.show()                     # <-- there is no change

What I am really after is this: I have a collection of integers, one
for each vertex.  Over time the integers change.  I would like to show
the graph with vertices labeled by these integers.  Best of all would
be to do this via @interact.

Thanks,
Dave
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to