You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in playing with custom forces, as well as combining in some other graph layout techniques for minimizing edge crossings (stuff like this tabu search layout idea).
Is there a suggested way of combining multiple forces? Should I create multiple Simulations and step through them in a custom event loop? Or is there a shortcut for doing this kind of thing?
The text was updated successfully, but these errors were encountered:
Currently, there isn't any good way to do this AFAIK. You could create a Force that runs each simulation individually inside of it, but that's not so clean. I'm planning on starting the re-write soon, and I'll consider adding support for that 🤔. Thanks!
I've been checking out the changes in the dev branch and I really like the API. It's clean and straightforward. I used it to create an edge-crossing minimizing optimization force that swaps positions of nearby nodes in search of an optimal permutation: https://github.com/micahscopes/cobwebs-2024/blob/main/src/grid_wanderer.rs#L25
The only thing that was a little tricky was that I needed to add a lot of type constraints for the node and edge types in order to get the position swapping to work.
(As far as layout goes, it sort of works but it's not very flexible. It only searches the node position permutation space. I think it'd be good to actually move the nodes themselves around on a grid and search that space instead as well.)
I'm interested in playing with custom forces, as well as combining in some other graph layout techniques for minimizing edge crossings (stuff like this tabu search layout idea).
Is there a suggested way of combining multiple forces? Should I create multiple
Simulation
s and step through them in a custom event loop? Or is there a shortcut for doing this kind of thing?The text was updated successfully, but these errors were encountered: