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

Edges sometimes facing wrong direction with multiple edges between the same pair of nodes #1002

Open
ablumenf opened this issue Jun 21, 2024 · 0 comments

Comments

@ablumenf
Copy link

When using curvestyle="curved", arrows sometimes point the wrong direction. Example:

from diagrams import Diagram
from diagrams.aws.storage import S3 as Data

with Diagram(filename="test1", show=False, direction="TB", curvestyle="curved"):

    A = Data("A")
    B = Data("B")

    A >> B
    B >> A

I end up seeing two A >> B arrows instead of what I want. To fix it, I need to change the second one to A << B or change curvestyle to "ortho". The first solution is more difficult when visualizing graphs from computed graphs programmatically, I probably need to know which node is "higher," which is likely inconsistent with graph visualization algorithms. (I tried this and had my loop going the right direction, but there ended up being a loop that shouldn't have been there when there should have been 2 arrows from the same input node to the same output node.)

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

1 participant