title: How to label edges of a Multigraph in Networkx and matplotlib?
body: <p>I have a Undirected Multigraph and I wanna draw the edges with labels, any suggestion? I the follow suggestion, but still no edges labels.
  <a href="https://stackoverflow.com/questions/22785849/drawing-multiple-edges-between-two-nodes-with-networkx">Drawing multiple edges between two nodes with networkx</a> by <a href="https://stackoverflow.com/users/1461850/atomh33ls">atomh33ls</a></p>
  <pre><code>G=nx.MultiGraph ()
  G.add_edge(1,2,weight=7)
  G.add_edge(1,2,weight=2)
  G.add_edge(1,2,weight=3)
  G.add_edge(3,1,weight=2)
  G.add_edge(3,2,weight=3)
  
  node_label = nx.get_node_attributes(G,'id')
  pos = nx.spring_layout(G)
  nx.draw_networkx_nodes(G, pos, label=node_label)
  nx.draw_networkx_labels(G, pos, label=node_label)
  edge_labels=nx.get_edge_attributes(G,'weight')
  ax = plt.gca()
  for e in G.edges:
      ax.annotate(&quot;&quot;,
                  xy=pos[e[0]], xycoords='data',
                  xytext=pos[e[1]], textcoords='data',
                  arrowprops=dict(arrowstyle=&quot;-&quot;, color=&quot;0.5&quot;,
                                  shrinkA=5, shrinkB=5,
                                  patchA=None, patchB=None,
                                  connectionstyle=&quot;arc3,rad=rrr&quot;.replace('rrr',str(0.3*e[2])
                                  ),
                                  ),
                  )
  #nx.draw_networkx_edge_labels(G, pos, edge_labels=edge_labels)
  plt.axis('off')
  plt.show()
  </code></pre>
  <p><a href="https://ibb.co/ssynZvK" rel="noreferrer">Undirected MultiGraph example</a></p>