Is there a simple way to define
a method that adds  labels to the vertices
of a graph or digraph? I would like to have
something like

G.show(labels = ['a', 'b', 'c'])

when G is a graph with vertices  [0,1,2].

Apparently, this is possible for graphs defined as
dictionaries, but not for graphs defined
from adjacency matrices.

Thank you!

Giovanni

--~--~---------~--~----~------------~-------~--~----~
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