You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at the dotfile down below one would assume three nodes being connected by two edges. But in reality one more node gets created with the label "\\n".
Steps to Reproduce
Load following dotfile with the code above and print the node list:
When removing the newline immediately preceeding the closing curly brace, we get the correct graph. Also when swapping the last node definition with the last edge definition.
I suspect this is related to pydot/pydot#277. NetworkX has had to xfail the nx_pydot tests due to the pydot/pyparsing issues. You can try installing the older version of pyparsing in your environment, e.g.
I tried to load the dot file of a control flow graph created by LLVM down below into a networkx graph using this code:
When looking at the dotfile down below one would assume three nodes being connected by two edges. But in reality one more node gets created with the label "\\n".
Steps to Reproduce
Load following dotfile with the code above and print the node list:
When removing the newline immediately preceeding the closing curly brace, we get the correct graph. Also when swapping the last node definition with the last edge definition.
Environment
Python version: 3.10
NetworkX version: 2.6.3
Pydot version: 1.4.2
The text was updated successfully, but these errors were encountered: