microsoft / microsoft/automatic-graph-layout

Edge separation value > 1 may cause crash

Open
#103 0 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

I want to lay out a graph where some edges should be longer than others.
To increase Weight works so-so,
To increase Separation works rather well (sometimes) but may also cause crashes.

In the WPF Sample, the following graph causes a crash:

            Graph graph = new Graph();
            
            var edge = graph.AddEdge("A", "B");
            edge.Attr.Separation = 2;
            graphViewer.Graph = graph;

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

Start by running the WPF Sample with the graph and edge.Attr.Separation = 2 shown in the issue, then capture where the crash occurs while assigning or laying out graphViewer.Graph. The work is done when the sample renders this graph without crashing and the relevant behavior remains covered by an appropriate regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.