microsoft/automatic-graph-layout

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

snarlynarwhal opened this issue · 3 comments

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

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!