I have a digraph which is creating with networkx. I added nodes and edges to digraph and here is the problem;
G.add_edge(1,2,weight=5.0) G.add_edge(2,1,weight=1.0