vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.8k stars 831 forks source link

Clustering datasets when zoomed-out #432

Open c4b4d4 opened 3 years ago

c4b4d4 commented 3 years ago

I'm working with big datasets, and after have thousands of nodes FPS drops a lot.

Is there any way to achieve clustering? Like when I'm zoomed out, it's not that important to have thousand of nodes drawed at the same time. It'll optimize a lot the use of 3d-force-graph with huge datasets.

vasturiano commented 3 years ago

@kzka90 you can always group nodes and setup some interaction to collapse/expand groups.

Like in this example, click on nodes to expand/collapse: https://vasturiano.github.io/3d-force-graph/example/expandable-nodes/