Re: [graphviz-interest] Edge statements in Dot

"Emden R. Gansner" <[email protected]> Mon, 19 Oct 2015 14:21:31 -0400
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
I did not notice that. The documentation is largely derived from the old 
graph library, but the new cgraph grammar does allow nodelists 
(comma-separated nodes) as well as subgraphs on each side of an edge 
operator. So the language spec should be updated, though I think the 
subgraph notation is easier to comprehend.

    Emden


On 10/19/2015 05:36 AM, Ivan Lazar Miljenovic wrote:
> The definition of the Dot language on the Graphviz website says:
>
> edge_stmt : (node_id | subgraph) edgeRHS [ attr_list ]
> edgeRHS : edgeop (node_id | subgraph) [ edgeRHS ]
> subgraph : [ subgraph [ ID ] ] '{' stmt_list '}'
>
> My understanding of this is that it's possible to state edges between
> multiple nodes using braces, such as: `{a b} -> {c d}` being
> equivalent to `a -> c; a -> d; b -> c; b -> d`.
>
> However, it seems that dot, etc. don't actually require the braces and
> happily accept `a, b -> c, d` (but *not* `a b -> c d`).  Is this
> intentional (in which case should the language specification be
> updated) or a bug?
>

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest