Re: [graphviz-interest] Meaning of "canon" output

Ivan Lazar Miljenovic <[email protected]> Tue, 13 May 2014 22:31:14 +1000
Newsgroups gmane.comp.video.graphviz
Message-ID <CA+u6gbwB5UFusJ6YChsxH-snguDgH+o_G5=wcpvYdYTMGO12eg@mail.gmail.com>
Right, but what is the definition of "canonically-formatted"?

On 13 May 2014 22:27, John Ellson <[email protected]> wrote:
> The default output from dot is -Tdot, which is DOT syntax annotated with
> layout information.
> With -Tcanon the layout is not done; the output is still in DOT syntax, but
> it
> is just a canonically-formatted rewrite of the input.
>
> $ echo "digraph  {hello->world}" | dot -Tdot
> digraph {
>     graph [bb="0,0,62.394,108"];
>     node [label="\N"];
>     hello     [height=0.5,
>         pos="31.197,90",
>         width=0.79437];
>     world     [height=0.5,
>         pos="31.197,18",
>         width=0.86659];
>     hello -> world     [pos="e,31.197,36.104 31.197,71.697 31.197,63.983
> 31.197,54.712 31.197,46.112"];
> }
>
>
> $ echo "digraph  {hello->world}" | dot -Tcanon
> digraph {
>     node [label="\N"];
>     hello -> world;
> }
>
>
> John
>
>
>
> On 05/13/2014 05:40 AM, Ivan Lazar Miljenovic wrote:
>>
>> My understanding of the canon output for dot, etc. was that it
>> pretty-printed Dot code into the following format:
>>
>> <graph or subgraph declaration> {
>>
>>
>
> _______________________________________________
> [email protected]
> http://lists.research.att.com/mailman/listinfo/graphviz-interest



-- 
Ivan Lazar Miljenovic
[email protected]
http://IvanMiljenovic.wordpress.com
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest