In my simple two-node, one-edge directed graph, the edge is not reaching the target node’s visible boundary. This happens in dot, circo, fdp, and twopi, at all rankdirs, and with splines set to ‘spline’, ‘line’, or to nothing at all. It also doesn’t matter whether overlap is set to ‘prism’ or not set at all.
I’ve tried setting nodesep and ranksep to various values or just to the defaults.
I’m using graphviz 2.47.2.
What am I missing?
Here’s the source:
digraph IdeaTree {
graph [ notranslate=“true” labelloc=t inputscale=“72” ranksep=“1.0” overlap=“prism” dpi=“72” splines=“spline” rankdir=“LR”]
node [ pin=“true” fixedsize=“true”]
edge [ arrowsize=“4.0” arrowhead=“normal” headclip=“true” ]
“36047” [ id=“36047” pos=“238.5,-162.0” width=“6.62” height=“4.50” shape=“rectangle” label=“qwer”]
“36113” [ id=“36113” pos=“711.0,-162.0” width=“4.50” height=“4.50” shape=“rectangle” label=“asdf”]
“36047” → “36113”
}
And the json output (edited to show only the relevant parts). You’ll notice that the target node’s left border is at 549, but the edge’s rightmost point is 508, so the edge stops 41 pts. before reaching the node.
{
“name”: “IdeaTree”,
“bb”: “0,0,873,324”,
“dpi”: “72”,
“inputscale”: “72”,
“notranslate”: “true”,
“overlap”: “prism”,
“rankdir”: “LR”,
“ranksep”: “1.0”,
“splines”: “spline”,
“objects”: [
{
“draw”:
[
{
“op”: “p”,
“points”: [[873.000,324.000],[549.000,324.000],[549.000,0.000],[873.000,0.000]]
}
],
“fixedsize”: “true”,
“height”: “4.5”,
“label”: “asdf”,
“pin”: “true”,
“pos”: “711,162”,
“shape”: “rectangle”,
“width”: “4.5”
}
],
“edges”: [
{
“draw”:
[
{
“op”: “b”,
“points”: [[477.160,162.000],[487.700,162.000],[498.230,162.000],[508.670,162.000]]
}
],
“arrowhead”: “normal”,
“arrowsize”: “4.0”,
“headclip”: “true”,
“pos”: “e,548.92,162 477.16,162 487.7,162 498.23,162 508.67,162”
}
]
}