How to place Graphviz labels to avoid edges
<pre><code>digraph {
  X -&gt; Y [xlabel="80"]
  Y -&gt; Z [xlabel="60"]
  Z -&gt; X [xlabel="3"]
  Y -&gt; X [xlabel="1"]
}
</code></pre>

<p>I render the Graphviz dot file above using:</p>

<pre><code>dot -Tpng a.dot -o a.png
</code></pre>

<p>but find that the output image, shown below, has the edges and arrowheads overlapping with the labels.</p>

<p><a href="https://i.stack.imgur.com/nGlIF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nGlIF.png" alt="enter image description here"></a></p>

<p>I've tried a variety of approaches without success, and so I've reverted here to a simple example. I'm betting there's actually an obvious flag to get past this issue. Can anyone help?</p>