[graphviz-interest] Graph header syntax

Serge Le Huitouze <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <CALbTpOg_MipNWEH8dCicvPdTtdic6wyts9vaxGv4SSqdopmqYg@mail.gmail.com>
Hi there,


When opening (with dotty.exe in versions 2.28, same with 2.30) a file
containing the following:
****************************
digraph  {
0 -> 1;
}
****************************
I get a "dotty;lefty: cannot laod graph" error message.


If I add a name to my dummy graph, viz.:
****************************
digraph G {
0 -> 1;
}
****************************
Everything works just fine.


The page describing the syntax
(http://www.graphviz.org/doc/info/lang.html) contains the following:
* graph : [ strict ] (graph | digraph) [ ID ] '{' stmt_list '}'
Which indicates that the string after "digraph" should be optional.

However, current implementation is not conform.


The same symptom occurs with the "subgraph" construct:
* subgraph : [ subgraph [ ID ] ] '{' stmt_list '}'

A missing "ID" causes a parse error (but a missing "subgraph ID" works fine).


So, is it a problem in the doc or in the implementation?

Thanks in advance.

Sarkis
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.