[sage-support] Re: showing graphs with multiple edges

2009-03-21 Thread Robert Miller
> 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." My bad, I misread your complaint. That's definitely a bug. --~--~-~--~~~-

[sage-support] Re: showing graphs with multiple edges

2009-03-21 Thread Robert Miller
> > 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 hav

[sage-support] Re: showing graphs with multiple edges

2009-03-19 Thread Jason Grout
davidp wrote: > Sorry. I was not being clear. I was surprised by the fact that > *only* the latter shows multiple edges. > > I am also surprised that arrowheads don't appear with multiple edges. > This is especially a problem with weighted digraphs. > > (By the way, it probably would have been

[sage-support] Re: showing graphs with multiple edges

2009-03-19 Thread davidp
Sorry. I was not being clear. I was surprised by the fact that *only* the latter shows multiple edges. I am also surprised that arrowheads don't appear with multiple edges. This is especially a problem with weighted digraphs. (By the way, it probably would have been better for me to have writt

[sage-support] Re: showing graphs with multiple edges

2009-03-19 Thread Jason Grout
davidp wrote: > Hi, > > I was a bit surprised by the difference exhibited below: > > 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. > sage: DiGraph(G.laplacian_