Force-Directed Layout with Convex Hull
This example shows a force-directed network with a Voronoi partition, where 100 nodes are grouped into 36 clusters and positioned through a physics simulation. The nodes are colored by group, and hovering over a Voronoi cell briefly highlights the corresponding node. The code uses d3.forceSimulation with x, y, charge, collide, and center forces, then runs 120 manual ticks. It renders SVG circles, lines, and Voronoi paths using d3.voronoi, with a single link connecting two nodes.