layout icon indicating copy to clipboard operation
layout copied to clipboard

Layout of nodes slightly different compared to graphviz

Open FloWi opened this issue 9 months ago • 1 comments

Hi!

First of all I'd like to leave a big thank you for providing and maintaining such a nice library! Much appreciated!

I've played around with it to visualize a supply chain for the api-game spacetraders. I've noticed that the ordering of the nodes could be improved and wrote up a summary in my repo where I compared the output of graphviz and layout-rs.

Would you mind taking a look? The readme has both images.

https://github.com/FloWi/hierarchical_graph_layout/blob/b9bfb07a93b78fccb8ca76e28526f9d2d2438fac/README.md

I also experimented with the crate and tried to extract some infos after the layout has been arranged, but I didn't get far.

I don't really know why it behaves that way and how it could be improved as I don't understand the layout algorithm. Maybe you can use this as an example.

So, not really an issue, but rather an example for optimization.

Happy to give it a try if someone with more knowledge of the topic could point me in the right direction (if you think this is a good first issue for people with not much prior knowledge)

Cheers, Florian

FloWi avatar May 04 '25 20:05 FloWi

Thank you for the excellent analysis!

nadavrot avatar May 05 '25 17:05 nadavrot