microsoft/automatic-graph-layout

Help with layout

Opened this issue · 4 comments

I'm building an app to create entity relationship diagrams from data in a model. I'd like to have the nodes in the diagram spread out from each other in a rough spiral pattern around a central node. I've tried several different layouts with various parameter settings. I've attached some files showing the actual results vs the desired results. Any suggestions? In the samples, the hexagons are relations and the rectangles are the entities. Thanks in advance!

ER Diagram Simple desired
ER Diagram Simple
ER Diagram

ER Diagram desired

I thought I had tried them all, but must have messed up. MDS is giving me what I'm looking for. Thanks so much for the help!!

FYI - I usually use the layout setting tool on the viewer to help find the right algorithm and settings, but I find now that I can't because every time I change a setting, I can no longer close the dialog.

@kinahawi did you set the layout programmatically? if so, can you point me to how you did it? thanks

Have a look at project UsingMDSLayoutSample .