Pong, All of this is documented, and you can get to it by typing
sage: G.show? Normally, the Python/Sage way of dealing with objects is to put the object first, with a dot afterwards. Then, you can hit tab to see all the functions available for that object, and type one ? for docs, and ?? for source code. Emily Kirkman has written several versions of multi-edge plotting for graphs, but they have all gone to /dev/null due to problems with her laptop. Currently no code exists, and she has changed gears to work on databases. On Sep 25, 10:29 am, pong <[EMAIL PROTECTED]> wrote: > Thanks!! > > A more general question, how can I find out all the possible options > for a command, like "show" for example? > > I've tried show.option? which doesn't seem to work. > > On Sep 25, 9:56 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > On Thu, Sep 25, 2008 at 9:50 AM, pong <[EMAIL PROTECTED]> wrote: > > > > I'm still having problem in displaying the label of the edges using > > > DiGraph. I have read more from this group and tried: > > > > G=DiGraph({1:{1:['hola','hi'], 2:['two','dos']},2:{1:['one']}}, > > > loops=True, multiedges=True) > > > G.edges() > > > [(1, 1, 'hi'), (1, 1, 'hola'), (1, 2, 'dos'), (1, 2, 'two'), (2, 1, > > > 'one')] > > > > G.show() > > > > I expect to see two loops from 1 to 1 labeled by 'hola' and 'hi', > > > etc... > > > but the result of G.show() only show one loop and no lables on the > > > edges. > > > > Can someone tell me what am I missing? > > > You need to explicitly ask for edge labels to appear on the plot: > > > G.show(edge_labels=True) > > > The plotting code for graphs definitely needs some work, but luckily > > there is someone working on it. It looks like there is only one edge > > and one loop since they are drawn directly over each other. The same > > thing is going on with the labels. I hope we can get this fixed in > > the next release or two. > > > --Mike > > > > Thanks in advance > > > > On Sep 23, 9:15 pm, pong <[EMAIL PROTECTED]> wrote: > > >> I tried one of the examples (example 3 inDiGraph?) > > > >> g =DiGraph({0:{1:'x',2:'z',3:'a'}, 2:{5:'out'}}, > > >> implementation='networkx'); show(g) > > > >> However, I don't see any label of the edges, why? > > > >> Also, I think theDiGraphfunction is very useful for drawing finite > > >> automata (thanks!) My question is: does it support loop to a node? > > >> (which is essential in drawing automata) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---