title: python draw multigraph
body: <p>I try to draw multigraph in Python using graphviz. </p>
  
  <p>For now I can draw usual graphs in Python somehow like:</p>
  
  <pre><code>import pygraphviz as pgv
  G=pgv.AGraph()
  G.add_node('a')
  G.add_node('b')
  G.layout()
  G.add_edge('a','b','first')
  G.add_edge('a','b','second')
  sorted(G.edges(keys=True)) 
  G.draw('file.png')
  </code></pre>
  
  <p>And I get on the output:</p>
  
  <p><img src="https://i.stack.imgur.com/Vg8Ap.png" alt="enter image description here"></p>
  
  <p>But actually I want get multigraph, i.e. </p>
  
  <p><img src="https://i.stack.imgur.com/EKsqT.png" alt="enter image description here"></p>
  
  <p>But documentation stays that it should differentiate :</p>
  
  <p><img src="https://i.stack.imgur.com/SzCIC.png" alt="enter image description here"></p>
  
  <p>I have no idea about drawing multigraph but not just graph.</p>
  
  <p>Thanks for any help.</p>
  
  <p><strong>Addition:</strong></p>
  
  <p>it seems that there are no yet such libraries in python that can do it, so I did it using Wolfram Mathematica. But question is still opened.</p>
  
  <p><strong>Addition</strong></p>
  
  <p>Now working code looks so:</p>
  
  <pre><code>import pygraphviz as pgv
  G=pgv.AGraph(strict=False)
  G.add_node('a')
  G.add_node('b')
  G.layout()
  G.add_edge('a','b','first')
  G.add_edge('a','b','second')
  sorted(G.edges(keys=True)) 
  G.draw('file.png')
  </code></pre>