microsoft/automatic-graph-layout

Any suggestions to improve Sugiyama layout generated by Msagl?

assopri opened this issue · 6 comments

I'm trying to visualize MD file repositary with Devexpress XtraDiagram. I turn each particular file to the shape. MD links become connectors. Devexpress XtraDiagram supports using 3rd party layout calculators for generating Sugiyama layout.
image

I use Microsoft.Msagl. Here is the layout I'm getting using Sugiyama layout just out of the box:
image

By the way, here is node distribution, which another software (Obsidian) generates on the same repositary:
image

I feel there are 2 things, that can improve situation:
1.Can I somehow distribute nodes along the canvas nor vertically elongated, neigher horizontally? I mean they should aim to distribute in a square:
image

  1. Can I make empty nodes distribute not in one vertical line, but everywhere along the canvas (just just taking any available free space):
    image

Try MDSLayout. I think it will work better than the hierarchical/layered layout of Sugiyama.

Try MDSLayout. I think it will work better than the hierarchical/layered layout of Sugiyama.

Thank you! Working awesome:

image

Only one thing: maybe you have any ideas how I can evenly redistribute the set of not connected nodes in free space on diagram?

Or maybe there is at least some option to set the minimal allowable distance between such nodes?

image

I am not sure how to spread disconnected nodes evenly.
To make a gap between the nodes use NodeSeparation.Is should be a property of MdsLayoutSettings.

I am not sure how to spread disconnected nodes evenly.
To make a gap between the nodes use NodeSeparation.Is should be a property of MdsLayoutSettings.

Thank you! If effects diagram, however impacts just connected parts:
image

image

@assopri, I fixed the node separation bug, 62ce41e, it should work with MDS layout without touching NodeSeparation