Passing the following dot file as input to dot2tex
results in a parse exception. If I remove the ",2", the error disappears.
digraph G {
node [shape="circle"];
1,2 [style="filled"];
1 -> { 2; 3; 4 }
2 -> { 5; 6 }
4 -> { 7; 8 }
5 -> { 9; 10 }
7 -> { 11; 12 }
}
I have seen it work in the past under Ubuntu. Currently I'm using cygwin64, with Python 2.7.10 and dot2tex 2.9.0. I'm no Python expert, but it seems that installing dot2tex from source, using python setup.py install
, also installed a version of PyParsing. After running dot2tex
with the --debug
switch, it seems from dot2tex.log
that I now have version 2.0.7 of PyParsing:
File "/usr/lib/python2.7/site-packages/pyparsing-2.0.7-py2.7.egg/pyparsing.py", line 1129, in parseString
raise exc
ParseException: Expected "}" (at char 46), (line:3, col:6)
Where is the problem coming from?