Re: [graphviz-interest] Meaning of "canon" output
John Ellson <[email protected]> Tue, 13 May 2014 09:04:27 -0400
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
You would have to look at the code. Basically its just a
pretty-printer. Why does it matter?
If you want to extract information from it your should use a DOT-syntax
parser that can deal with the
language definition:
http://www.graphviz.org/content/dot-language
Can you ask your question a different way? What are you looking for?
On 05/13/2014 08:31 AM, Ivan Lazar Miljenovic wrote:
> 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
>
>
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest