I am using d3-force simulation on a network with groups of linked nodes as well as single nodes.
The problem is: The force pushes everything far off.
What I would want is, the force should
The force shouldnt act on single nodes if they are already away and spaced out.
to only act on nodes which are linked and if they are pushed towards each other or 2 linked components are overlapping.
Example: https://jsfiddle.net/pdubey84/or0tn49k/1/
Notice how when a single node is moved it moves other nodes as well. I understand it is due to manybody force but is there a way to prevent that.