block by SpaceActuary b07971ec03818f1b3ce1fe30712ef6cd

Clustered Force Layout II

Full Screen

This clustered force layout is implemented using two custom forces. The first, cluster, pushes nodes towards the largest node of the same color. A second collide force prevents circles from overlapping by detecting collisions.

This example uses custom gravity applied only to the largest node of each color; compare to standard gravity.

forked from mbostock‘s block: Clustered Force Layout II

index.html