2

In Mathematica v12.0,The function GraphPlot seems to give unexpected results when I try to draw a multigraph.

GraphPlot[{{1 -> 2, "a"}, {1 -> 2, "b"}, {2 -> 1, "c"}},DirectedEdges -> True, VertexLabels -> "Name"]

enter image description here I have noticed this answer that shows this is a bug introduced in version 9, fixed in version 10. But my experience indicated that it still exists on version 12.0. I don't know if it was my mistake or the truth?

Ren Witcher
  • 707
  • 3
  • 12

1 Answers1

4

You can use older GraphPlot. In version 12.0, it is renamed GraphComputation`GraphPlotLegacy.

GraphComputation`GraphPlotLegacy[{{1 -> 2, "a"}, {1 -> 2, "b"},{2 -> 1,"c"}}, 
  DirectedEdges -> True, VertexLabeling -> True]

enter image description here

kglr
  • 394,356
  • 18
  • 477
  • 896