MOTHBALLED-graphviz
MOTHBALLED-graphviz copied to clipboard
NaN position with splines=curved using neato
I am having a problem with edges not showing up when using curved splines. This only seems to be a problem with neato, but I can't use the default filter because I need to set the node positions explicitly.
Input:
digraph "Assembly 2" {
graph [
splines="curved"
size="1,1"
dpi="300"
ratio="fill"
bgcolor="transparent"
]
node [
style="filled"
fillcolor="#a6cee3"
color="#a6cee3"
width="1.5"
regular="true"
label=""
]
edge [
dir="none"
penwidth="10"
]
"A_0" [ pos="143.0,50.0" color="#1b9e77" fillcolor="#1b9e77"]
"A_1" [ pos="50.0,550.0" color="#1b9e77" fillcolor="#1b9e77"]
"A_0" ->"A_1" [ color="#000066" ]
}
When run with dot -Tdot -Kneato -O -n2 test.dot
, I get the following output:
digraph "Assembly 2" {
graph [bb="0,0,608,608",
bgcolor=transparent,
dpi=300,
ratio=fill,
size="1,1",
splines=curved
];
node [color="#a6cee3",
fillcolor="#a6cee3",
label="",
regular=true,
style=filled,
width=1.5
];
edge [dir=none,
penwidth=10
];
A_0 [color="#1b9e77",
fillcolor="#1b9e77",
height=1.5,
pos="444.66,54"];
A_1 [color="#1b9e77",
fillcolor="#1b9e77",
height=1.5,
pos="163.34,554"];
A_0 -> A_1 [color="#000066",
pos="nan,nan nan,nan nan,nan nan,nan"];
}
The NaN edge position causes the edge to be dropped completely when rendered.
This is using graphviz version 2.38.0 (20140413.2041) on OS 10.11.4.
This was fixed in August, 2014. commit = 489f1a73936c7d0069defe6c23371ed4727644b1
Would you know in what version was that fix released?
Since we build a new working version everyday, technically it would first be in graphviz-2.39.20140712. Any recent working version will have the fix. I'm not sure when we will produce a 2.40 stable release.