title: edge length in networkx
body: <p>I am trying to adjust the length of edge between two nodes by following code. But apparently it didn't work. Could anyone guide me where I am making mistake: Please note that I already look at this thread (<a href="https://stackoverflow.com/questions/33863550/how-to-specify-edge-length-in-networkx-for-calculating-shortest-distance">How to specify edge length in Networkx for calculating shortest distance?</a>)  but didn't solve my issue </p>
  
  <pre><code>import networkx as nx
  import matplotlib.pyplot as plt
  
  G=nx.Graph()
  G.add_nodes_from([1,2])
  G.add_edge(1,2, length = 10)  # I also replaced length with len but no luck
  nx.draw(G,with_labels=True)
  plt.show() # display
  </code></pre>