Re: [graphviz-interest] Meaning of "canon" output
John Ellson <[email protected]> Tue, 13 May 2014 08:27:40 -0400
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
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