Skip to content

All-Pairs calculation for force directed layout #21

Description

@mdegans

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions