Arrows halfway of an edge

I use graphviz to programatically generate images. Unfortunately, there seems to be no way to create an arrow halfway of an edge. Something like this:


Is there any way to achieve such an arrow?
Any help is appeciated.
Han Joosten

Sort answer:
No. There is no general-purpose way to call for an arrowhead in the middle of an edge. There was a request (Feature request: Allow arrowheads in the middle of edges. (#2005) · Issues · graphviz / graphviz · GitLab), but it was closed. Feel free to re-open it.

Long answer:
Maybe, depending on the specifics of the graph/diagram.

  • If you are using splines=false (i.e. straight lines) it is a fairly easy post-processor task to find the mid-point, add an invisible point at the mid-point, and add an edge to the new point
  • otherwise it is a post-processing slog
1 Like