graphviz - 节点之间的 Graphviz 边缘绘制错误
问题描述
graphivz 显示了生成图形的奇怪行为。节点 5 到 6 之间的连接从 5.south 到 6.east,但我想要 5.west 到 6.north。此外,从 7.west 到 16.north,16.north 位置没有居中。我做错了什么? 边缘绘制错误
另一方面,使用网站https://graphs.grevian.org生成的图表看起来不错并且满足我的所有要求。 边缘正确绘制
这是用于生成两张图片的代码示例:
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
解决方案
推荐阅读
- java - API 级别 22 中的文本到语音问题
- swiftui - SwiftUI:在 Xcode 12/iOS 14 中使用环境对象(--> 如何/在哪里放置对象在环境中?)
- sql - SQL:使用容量将单行拆分为多行
- c# - 尝试使用 JWT 进行 ASP NET Owin 身份验证时出错?
- python - 电报机器人中未显示回复按钮
- node.js - Mongoose:如果数组中不存在条目,则返回一个布尔变量
- windows - 在 Windows 上使用 OpenSSL 1.1.1g 解码自定义 ASN1 流崩溃
- nim-lang - 如何在 Nim 中使用默认泛型类型?
- docker - 使用 BASIC auth 在 ngnix 中保护网站
- excel - 如何从其他大型 excel 文件 +1 000 000 行中提取计算/数据?