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

Strange behaviour when adding a string with ":" as node identifier while creating a new edge #83

Closed
LucaGebhardt2206 opened this issue Sep 27, 2019 · 1 comment

Comments

@LucaGebhardt2206
Copy link

LucaGebhardt2206 commented Sep 27, 2019

diagram = Digraph()
diagram.node(account["id"], browser["id"])
Creates a new node with the desired identifier: 01.08.2017-00:00:00

diagram = Digraph()
diagram.edge(account["id"], browser["id"])
Unfortunately, it cuts of the identifier at the first ':': 01.08.2017-00

As a result, two different nodes are created.

I found in lang.py at line 81 that ":" is used as a static identifier.
Probably, a variable identifier with ":" as default parameter would be an appropriate solution.

The debugger indicates that the string is assembled incorrectly: '01.08.2017-00":00:00"'

@xflr6
Copy link
Owner

xflr6 commented Sep 28, 2019

Thanks, AFAIU this is a duplicate of #53 (current workaround would be to not use node names with literal colons).

@xflr6 xflr6 closed this as completed Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants