microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.34k stars 301 forks source link

Layout question: How can I center the vertical alignment of all subgraphs/clusters and nodes? #345

Open snarlynarwhal opened 1 year ago

snarlynarwhal commented 1 year ago

Is it possible to center the vertical alignment of all subgraphs/clusters and nodes? I like how DOT lays out the subgraphs/clusters + how Mermaid lays out the nodes. I attached a rendering from MSAGL, DOT, and Mermaid for reference, as well as a mockup of what I want to accomplish.

Here's that MSAGL renders:

output

Here's what DOT renders:

image

Here's what Mermaid renders:

image

Here's a mockup of the layout I want:

image

levnach commented 1 year ago

Msagl would not do it automatically. You can tweak it with the mouse.


From: PJ Legendre @.> Sent: Friday, April 14, 2023 1:19 PM To: microsoft/automatic-graph-layout @.> Cc: Subscribed @.***> Subject: [microsoft/automatic-graph-layout] Layout question: How can I center the vertical alignment of all subgraphs/clusters and nodes? (Issue #345)

Is it possible to center the vertical alignment of all subgraphs/clusters and nodes? I like how DOT lays out the subgraphs/clusters + how Mermaid lays out the nodes. I attached a rendering from MSAGL, DOT, and Mermaid for reference, as well as a mockup of what I want to accomplish.

Here's that MSAGL renders:

[output]https://user-images.githubusercontent.com/3300071/232142615-40b83235-f16b-415d-a3ac-7eafc2f27bdb.png

Here's what DOT renders:

[image]https://user-images.githubusercontent.com/3300071/232143011-d9b1a291-10a7-4e41-8512-24f9bc607913.png

Here's what Mermaid renders:

[image]https://user-images.githubusercontent.com/3300071/232142857-87def878-2650-425e-b308-bc7b1bcb8008.png

Here's a mockup of the layout I want:

[image]https://user-images.githubusercontent.com/3300071/232144974-1ff63b99-dbaa-4d3f-9e52-5c7c631e4c57.png

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/automatic-graph-layout/issues/345, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABJAYZ67HEBVT3SET72PX6DXBGWNTANCNFSM6AAAAAAW63WCUI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

snarlynarwhal commented 1 year ago

Understood! Do you accept feature requests? It's a minor request since it's purely aesthetic, but it'd be nice to have: I made a simple tool that renders puzzle dependency charts from plain text files. It's similar to Mermaid and DOT, but the syntax is more concise and streamlined for this use case. Anyways, manual tweaks are unideal since the chart will change frequently as game designers develop the puzzles for the narrative. Can definitely live without it, but figured it wouldn't hurt to ask!

levnach commented 1 year ago

I would not take it as a feature request, sorry. It is a nice thing to have but not easily achievable.

From: PJ Legendre @.> Sent: Friday, April 14, 2023 1:45 PM To: microsoft/automatic-graph-layout @.> Cc: Lev Nachmanson @.>; Comment @.> Subject: Re: [microsoft/automatic-graph-layout] Layout question: How can I center the vertical alignment of all subgraphs/clusters and nodes? (Issue #345)

Understood! Do you accept feature requests? It's a minor request since it's purely aesthetic, but it'd be nice to have: I made a simple tool that renders puzzle dependency charts from plain text files. It's similar to Mermaid and DOT, but the syntax is more concise and streamlined for this use case. Anyways, manual tweaks are unideal since the chart will change frequently as game designers develop the puzzles for the narrative. Can definitely live without it, but figured it wouldn't hurt to ask!

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/automatic-graph-layout/issues/345#issuecomment-1509235240, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABJAYZ745SCP73FXH7ESUEDXBGZLDANCNFSM6AAAAAAW63WCUI. You are receiving this because you commented.Message ID: @.**@.>>