> > sage: G = DiGraph({1:{2: 2}, 2:{1:1}}) > > sage: G.show() > > I'm surprised by the output of this. There are clearly two edges in the > graph: 1->2 and 2->1, but only one edge is shown.
No, the format for multiple edges in a dict of dicts is {u : {v : [label1, label2]} }. Since you don't have the innermost list, the graph is assumed to have one edge 1 --> 2 labeled by "2." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---