Drag the white circles to move targets used by the force layout.
In this example the nodes are each assigned a target that they will cluster to. One could have the targets be different categories arranged in some semanticly meaningful way.
Built with blockbuilder.org
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js