增加连接弧的曲率

Increase curvature of connecting arcs

考虑:

digraph D {
    0[pos="0,0!"]
    1[pos="0,5!"]
    0 -> 1[label=0.25]
    1 -> 0[label=0.50]
}

neato engine 下呈现,这给出:

有没有办法increase/control连接弧的曲率,让渲染效果像下面的手绘注释:


编辑添加:虽然我不必坚持使用 neato,但在我的应用程序中维护节点 pos 坐标值很重要。

[可能有更好的方法,但边缘很难处理]
此解决方案需要 neato -n(参见 https://graphviz.org/faq/#FaqDotWithNodeCoords) and (https://graphviz.org/docs/attrs/pos/
neato 的不同版本在输入上一个答案时似乎会产生不同的结果。此输入文件应适用于新旧版本的 neato.

digraph D {
    // next  lines from the Graphviz FAQ
    overlap=false
    splines=true
    
    0[pos="0,0!"]
    1[pos="0,5!"] 
    // stick an invisible node in the middle, to force the edges out
    half [pos="0,2.5!" width=1.1 height=1  style=invis]  
    0:nw -> 1:sw [label=0.25]
    1:se -> 0:ne [label=0.50]
}

给予: