title: Spring_layout doesn't works properly with weights
body: <p>I'm trying to use weights to define the distance between the nodes but it's not working. I even tried to use normalized values without success.</p>
  <pre class="lang-py prettyprint-override"><code>import networkx as nx
  import matplotlib.pyplot as plt
  
  G = nx.Graph()
  
  raw_values = [(1,2, {'weight':70000000000}), (2,3,{'weight':700000}), 
                    (1,4,{'weight':1000000}), (2,4,{'weight':50000000000})]
  
  normalized_values = []
  for l in list1:
      norm_value = np.log10(l[2]['weight'])
      normalized_values.append((l[0], l[1], {'weight': norm_value}))
  
  G.add_edges_from(raw_values)
  
  pos = nx.spring_layout(G)
  
  nx.draw_networkx(G,pos)
  edge_labels = nx.draw_networkx_edge_labels(G, pos)
  
  plt.show()
  </code></pre>
  <p>Here is the result I get, as you can see the nodes are very close even though the values are very different:</p>
  <p><a href="https://i.stack.imgur.com/MJAOb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MJAOb.png" alt="enter image description here" /></a></p>