question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to prevent edge overlap

See original GitHub issue

As much as I like mermaid - it often really handles edges in an erradic way. Often I have to go through try and error to find a configuration, where the edges don’t overlap. Maybe I am too dumb but I could not yet make heads or tails for what logic mermaid uses to layout graphs. Below is an example. Mermaid does a fine job except for overlapping edges (which I almost never want).

    graph TD
      linkStyle default interpolate basis
      dpc[DataPipeline Controller]
      pbc[Protobuf Controller]
      psc[Pseudonymization Controller]

      dpr((DataPipeline Resource))
      prrr((ProtobufPublic Resource))
      psr((Pseudonymization Resource))

      preg(Protobuf Registry)
      prbind(Protobuf Bindings)
      pinst(Pseudonymization Service)

      psc-->|spawns|pinst
      psc-->|reads|psr


      pbc-->|reads|prrr
      pbc-->|spawns|preg
      pbc-->|generates|prbind

      dpc-.->|creates|psr
      dpc-.->|creates|prrr
      dpc-->|reads|dpr

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
knsvcommented, Dec 7, 2019

If we render using dagre + graphlib but not dagre-js we could expose more options layout to the synax. (https://github.com/dagrejs/dagre/wiki) Like ranker and align for instance.

0reactions
jgreywolfcommented, Feb 25, 2021

After discussion we have determined that this will be closed as “wont fix” at this time, due to the fact that the underlying libraries currently used do not support this

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to avoid edge overlap · Issue #441 · eclipse/elk - GitHub
I have a diagram, I need the edge must be ORTHOGONAL, and not overlap, I don't care the direction of the edge.
Read more >
neato: avoid edge overlaps (#1369) · Issues - graphviz - GitLab
Using neato with fixed positions, is there a chance to avoid overlaps as you can see from edge from 1 to 7, although...
Read more >
Prevent edge overlap - Nevron Software
Hi, I am trying to create a directed graph with 2 links between a source and a target. I am using a NDynamic...
Read more >
Eliminating Edge Overlap - Gephi forums
Hi Dru, The over crossing of edges is impossible to avoid as soon as you have more than a couple of nodes -...
Read more >
overlap - Graphviz
If overlap="compress" , the layout will be scaled down as much as possible without introducing any overlaps, obviously assuming there are none ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found