title: d3 force directed layout - link distance priority
body: <p>Using a force-directed layout in d3, how do I make the link distance a priority, while still keeping a nice graph layout? </p>
  
  <p>If I specify dynamic link distances, but keep the default charge, my graph distances are morphed a bit by the charge function, and are no longer accurate distances:</p>
  
  <p><a href="https://i.stack.imgur.com/n1iZ0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n1iZ0.png" alt="enter image description here"></a></p>
  
  <p>However, if I remove the charge, the graph looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/lvWkV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lvWkV.png" alt="enter image description here"></a></p>
  
  <p>Any advice appreciated!</p>