[Dot] using ports causes edges to cross
Ported Issue from Mantis Original ID: 1183 Reported By: Laszlo Nemeth
SEVERITY: MINOR Submitted: 2007-10-22 13:56:56
OS: X86-LINUX-DEBIAN
VERSION: 2.8
DESCRIPTION
dot -Tps
I'm trying to draw a singly linked circular list. The code below
works as expected, and puts the link from the 'tail' back to 'head'
nicely below the list. Switch se to ne and sw to nw for d -> a, now
the arrow goes nuts and criss-crosses the list. I would expect the
arrow to go above the list.
Tried a couple of variations, dropping the constraint=false, dropping splines=true, none of them solves the problem.
STEPS TO REPRODUCE
digraph L
{
rankdir=LR;
node [shape=record,label="{<d> data|<n> next}"];
subgraph ns {
a:n -> b:d;
b:n -> c:d;
c:n -> d:d;
}
d:n:se -> a:d:sw [constraint=false,splines=true];
}
ADDITIONAL INFORMATION
Thanks for graphviz. Best regards, Laszlo Nemeth