fluffy-mods / ResearchTree

Graphical research tree and queue system for RimWorld
Other
23 stars 25 forks source link

Improved Layout Algorithm? #50

Open Catacomb007 opened 4 years ago

Catacomb007 commented 4 years ago

I've happened across a graph layout library that seems perfect for this mod.

It's implemented in C#, .NETStandard 2.0, so there should be no problem running it in Mono, and it's under the same MIT License.

There is sample code included with the source, including a standalone graph viewer and editor. One implementation apparently handled 15 000 edges in 10 minutes, using 4GB of ram, but it is allegedly extensible past 50 000 edges.

Binaries https://www.microsoft.com/en-us/research/project/microsoft-automatic-graph-layout/ https://www.nuget.org/packages/AutomaticGraphLayout/

Source Code https://github.com/microsoft/automatic-graph-layout

Using the serious mathematicians' algorithms might lead to performance increases with massive modpacks (like mine), and may create more optimal layouts.

Just thought I could bring it to your attention