Force Directed Graph

Hi,

Has anybody had any experience with creating ‘force-directed graphs’ with grasshopper - my assumption would be to use the kangaroo solver but maybe somebody knows good references?

Thanks

Here’s a force directed graph layout example.
It uses Length goals for graph edges, and repulsion between the nodes (with some spatial sorting and cutoffs to make it faster by skipping interactions between distant points).


repulsion_distribute.gh (11.4 KB)

9 Likes

Beautiful effect

repulsion_distribute__.gh (19.9 KB)

2 Likes

Heroic!

Thank you for sharing.