> 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: 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
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
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
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_