puzzler10
This is an example of adding custom forces to a forceSimulation.
Here all male nodes are pulled to the right side and all female nodes are pulled to the left side.
Click here for an explanation of this effect.
https://d3js.org/d3.v4.min.js