how to draw multigraph in networkx using matplotlib or graphviz
Graphviz does a good job drawing parallel edges. You can use that with NetworkX by writing a dot file and then processing with Graphviz (e.g. neato layout below). You’ll need pydot or pygraphviz in addition to NetworkX In [1]: import networkx as nx In [2]: G=nx.MultiGraph() In [3]: G.add_edge(1,2) In [4]: G.add_edge(1,2) In [5]: nx.write_dot(G,’multi.dot’) … Read more