All examples By author By category About

puzzler10

Splitting nodes - force directed graph custom forces example

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.