[graphviz-interest] dot output depends on the order of nodes in the source
Anton Shepelev <[email protected]> Tue, 4 Apr 2017 14:35:13 +0300
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
Hello, all
Is it correct that the result of dot depends on the
order in which nodes are introduced?
The following program:
digraph G {
graph [dpi=96]
rankdir = LR
Export
Condition2
Export->GetBaseDoc
Condition2->Export
Condition2->CheckA
Condition1->CheckA
Condition1->CheckB
Condition2->CheckB
{
rank=same
Export
Condition2
Condition1
}
}
produces this output:
https://urldefense.proofpoint.com/v2/url?u=https-3A__r31.imgup.net_call-2D21f3d.png&d=DwICAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=xTP9WvTdKb0ExEpJt26Gk78mnvO7k30KWj9PaePy7aZwx4MmNzMLhJV4yUhpeMDg&m=63mucJ6kCotRlhl86QbRAMm1yg6tp-5YAs6d8-Ip6iU&s=2quBE7UvjtrtJJ3RPs0w2HA3W7kWkIFKiUKEj4XJhrI&e=
whereas revering the nodes Export and Condition2 in
the beginning:
Condition2
Export
causes them to be reveresed to the output also:
https://urldefense.proofpoint.com/v2/url?u=https-3A__j07.imgup.net_call-2D2d968.png&d=DwICAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=xTP9WvTdKb0ExEpJt26Gk78mnvO7k30KWj9PaePy7aZwx4MmNzMLhJV4yUhpeMDg&m=63mucJ6kCotRlhl86QbRAMm1yg6tp-5YAs6d8-Ip6iU&s=TlGIY3CPf0l3pBoRcB8yTbG6mnC03qA5OhWZX3SWLoo&e=
This latter arrangement should seem more optimal,
because the edge Condition2->Export is straight and
much shorter. Why does not dot find this solution
in both cases?
--
Please, do not send replies to the list to my e-mail.
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest