microsoft / microsoft/automatic-graph-layout

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

Open
#345 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.5k
Forks
319
Avg merge
38m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the graph layout and subgraph/cluster handling in the repository, then compare MSAGL's rendering with the attached DOT, Mermaid, and mockup references. Done would mean a defined implementation approach that centers the vertical alignment of the requested clusters and nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.