gpt4 book ai didi

graphviz - GraphViz 中的弧形图布局

转载 作者:行者123 更新时间:2023-12-04 14:34:47 30 4
gpt4 key购买 nike

我怎么能画一个 arc graph在 GraphViz 中?我不能强制节点排成一行。

arc graph

最佳答案

由于我没有足够的声誉来添加评论,我在这里发布了一些建议。下面的代码解决了强制节点排成一行的问题。

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];
}

但对半圆边缘没有力量。您可以尝试其他工具,例如 Tikz。

关于graphviz - GraphViz 中的弧形图布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24648791/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com