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
I am trying to read a dot file that has every node name in quotes. pydot handles this correctly, but networkx doesn't in the read_dot in the nx_pydot file. Turns out you aren't handling quotes in the edge node names the same way you were in the node names.
if I make the following changes starting at line 105, it works.
(note this is a hand crafted approx of a diff, not the real thing)
-------- 8< ------------- end snip --------------8< --------------
up to you if you want the clean_name function in this function or available to the module. Also, in preview - looks like code is getting mangled. Email me if you want another copy.
Activity
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @hagberg, 2010-03-09
(In [1553]) Strip double quotes from pydot node names if present.
Fixes #320