I am facing a weird issue in this jsfiddle. If I delete few existing nodes and add new nodes later, the transition of nodes doesn't stay the same.
This scenario is working fine :
reset buttonctee node which is connected to a few other nodes and drag.ctee node are also moving along with ctee.
This scenario is having a problem (only difference is we are going to delete a node first and then click reset button) :
GW node and select the option Stop.reset buttonctee node which is connected to a few other nodes and drag.
- check out the following screenshot, the connected nodes to the
cteenode are not moving along withctee.

The issue looks like that when you delete a node, you're creating a new reference to links that is not in sync with your force layout:
links = links.filter...
To fix this, you can simply add: force.links(links); to the line after it to update the force layout's reference.
Updated fiddle: https://jsfiddle.net/r1tcj0mf/16/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With