节点之间的Graphviz边缘绘制错误

时间:2019-09-20 04:41:30

标签: graphviz edges

graphivz显示了生成图形的奇怪行为。节点5到6之间的连接从5.south到6.east,但是我想从5.west到6.north。此外,从7.west到16.north,在16.north的位置未居中。我做错了什么? edges are wrong drawn

另一方面,通过网站https://graphs.grevian.org生成的图形看起来不错,并且可以满足我的所有要求。 edges are correct drawn

这是用于生成两张图片的代码示例:

digraph G {
pencolor=transparent;
graph [splines=ortho];
subgraph cluster1 {
1->2->3->4->5;
}
subgraph cluster2 {
6->7->8->9->10.1;
}
subgraph cluster3 {
11->12->13->14->15;
}
subgraph cluster4 {
16->17->18->19->20;
}
subgraph cluster5 {
21->22->23->24->25
}
1->11;
3->21;
5->6;
1 [label="1-1"];
7->16;
}

在我的系统上,ubuntu 18.04.03 LTS安装了graphviz 2.40.1-2。在终端中,我使用

dot -Tpng graph_G.dot -o graph_G.png

0 个答案:

没有答案