Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All-Pairs calculation for force directed layout #21

Open
mdegans opened this issue Jun 20, 2024 · 0 comments
Open

All-Pairs calculation for force directed layout #21

mdegans opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mdegans
Copy link
Owner

mdegans commented Jun 20, 2024

Currently some physics code (repulsion, attraction, collision) is limited by degree. This mostly works but with many nodes, despite it being fast, stuff can end up on top of each other.

If we do an all-pairs simulation, perhaps with Barnes-Hut optimization, this problem should go away. The impediment here is the data structure. Doing all pairs, from the options I can think about, would mean traversing the tree structure repeatedly (potentially slow) or flattening the data structure so one container owns all the nodes. Also Barnes-Hut would require a lot more code as well as changes to the data structure to be efficient (a quadtree or similar).

@mdegans mdegans added the enhancement New feature or request label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant