由于我没有足够的声誉来添加评论,因此我在这里发布一些建议。下面的代码解决了强制节点排成一行的问题。
digraph "test-graph" {
graph [rankdir=LR]
node[shape=circle, color=lightblue,label="",style=filled,width=0.3];
edge[arrowhead=none,splines=line];
1->2;
2->3;
edge[splines=curved];
1->3[constraint=false];
}
Run Code Online (Sandbox Code Playgroud)
但没有半圆边缘的力量。您可以尝试其他工具,例如 Tikz。