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

problem with entering edges direction when dir attribute is "back" #220

Open
kasra0 opened this issue Feb 9, 2022 · 3 comments
Open

problem with entering edges direction when dir attribute is "back" #220

kasra0 opened this issue Feb 9, 2022 · 3 comments
Labels

Comments

@kasra0
Copy link

kasra0 commented Feb 9, 2022

Hi,

digraph {
     rankdir="LR"
      node [shape="circle" fixedsize=1]
      center -> right  [style="none"]
      left  -> center  [style="invis" dir="back"]
}

When we change the style attribute value from "invis" to "none"
the entering edge for center -> right goes from center node to the right node ( logic behavior)
the entering edge for left -> center goes from left node to the center node but the dir attribute is "back".
The entering edge should go from center node to left node.

this example shows the problem.

Another example would be with Circo layout. If the edges are from outside to the center using the dir attribute then we have the same issue.

A solution would be using the neato layout, doing all the positioning, and having the right direction by default without using the dir attribute but I lose all the simplicity of the dot layout.

Thanks for your help.

@magjac
Copy link
Owner

magjac commented Feb 9, 2022

Haha. Yes, that's a use case I haven't thought of. Thanks for the report. Maybe it's possible to detect this somehow and do a better job. I wonder how to best grow entering edges with dir="both" or dir="none".

@magjac magjac added the bug label Feb 9, 2022
@kasra0
Copy link
Author

kasra0 commented Feb 9, 2022

I think that dir="both" and dir="none" should be treated the same way.
A simple fade-in ( entering )/out (exiting) behavior at the edge position should be enough.
dir="none" does not specify direction so it makes sense just having a fade behavior.
dir="both" either as choosing a direction here is by definition wrong.
If you really want to implement a grow entering then from the center of the edge seems to be the best solution ( but in that case I don't know if it's straightforward)

What do you think?

@kasra0
Copy link
Author

kasra0 commented Feb 26, 2022

Hi,

do you plan to solve this issue anytime soon or not at all ?

thanks in advance.

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

No branches or pull requests

2 participants