Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping edges #211

Open
ssmereka opened this issue Mar 3, 2017 · 4 comments
Open

Overlapping edges #211

ssmereka opened this issue Mar 3, 2017 · 4 comments

Comments

@ssmereka
Copy link

ssmereka commented Mar 3, 2017

In the following example an edge is being hidden behind another edge. See the code in this JSFiddle.

degree-hidden-edge

If we move nodes C, D, E, and F you can see the hidden edge.

dagre-hidden-edge-2

@ssmereka
Copy link
Author

Can anyone take a look at this let me know if it is expected behavior or a bug? I don't mind looking into the Dagre code, but I would rather not waste time if this is an expected result from the algorithm.

@NRWhittle
Copy link

@ssmereka I know it's been a few years so you might not remember, but did you ever find a workaround for this?

@ssmereka
Copy link
Author

ssmereka commented Mar 5, 2021

@ssmereka I know it's been a few years so you might not remember, but did you ever find a workaround for this?

@NRWhittle I unfortunately do not remember. I think it was still a problem, but the data we were displaying changed in a way that it was no longer an issue.

@NRWhittle
Copy link

After some testing it I think it might be the graph's align property that's causing some overlap issues. This is a 3 node test case with rankDir = 'LR' and align = 'DR':

image

and then is what happens when I leave align as the default:

image

and then just for completeness, the same graph with rankDir being left as the default. With align = 'DR':

image

and with both rankDir and align as default:

image

Hopefully this might help anyone in the future seeing the same issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants