Skip to content

Instantly share code, notes, and snippets.

View 4ndr01d3's full-sized avatar

Gustavo Salazar 4ndr01d3

View GitHub Profile
@4ndr01d3
4ndr01d3 / README.md
Last active July 17, 2019 06:01 — forked from mbostock/.block
Clustering a Force layout with a Quadtree

#Clustering a Force layout with a quadtree#

This is an example of how to use a Quadtree to cluster the nodes that are close to each other in a Force Layout.

With the slider you can select how deep you want to explore the quadtree, and it creates cluster-nodes representing the points that are not going to be displayed.