Subject: | Graph::Reader::Dot::read_graph fails on digraphs without an ID |
Graph::Reader::Dot::read_graph fails on digraphs without an ID with the
following error:
$_[0]->YYCurtok {
$_[0]->YYCurval {
@$_[0]->YYExpect ID QUOT NUMBER
$_[0]->YYLexer CODE(0x1830d9c)
substr($_[0]->YYData->{INPUT},0,21) ...
Syntax error.
Example dot:
digraph {
1 -> 1
}
The dot-grammar allows to have a digraph without a name:
http://www.graphviz.org/doc/info/lang.html
graph : [ strict ] (graph | digraph) [ ID ] '{' stmt_list '}'
Workaround: just give the digraph a name.
Thanks
Bernhard