title: D3 force simulation - Bring nodes closer to a point in same angle
body: <p>This question is based on <a href="https://stackoverflow.com/questions/50712370/move-d3-circles-away-from-center-circle-force-layout/51849152#51849152">Move d3 circles away from center circle - force layout</a> where when size of a node N1 is changed and I ran simulation on the nodes, the nodes around the N1 will move away in the same angle but the question I have here is to bring the nodes back closer to the N1 when its size is changed back to original. How can I achieve that?</p>
  
  <p>I have used below but the nodes are <strong>not</strong> coming closer</p>
  
  <pre><code>simulation.nodes(nodes);
  simulation.restart();
  for (var i = 0; i &lt; 300; ++i) simulation.tick();
  </code></pre>
  
  <p>Also, if I try with force simulation then the position of the other nodes are completely changing, please see the video here <a href="http://recordit.co/797i1E8ocT" rel="nofollow noreferrer">http://recordit.co/797i1E8ocT</a></p>
  
  <pre><code>d3.forceSimulation(nodes)
      .force('x', d3.forceX(plot.x))
      .force('y', d3.forceY(plot.y))
  </code></pre>
  
  <p>Thanks in advance.</p>