[英]GraphViz - How To Draw These Edges
Heylo, I just wanted to see if edges like the ones I've mocked up in the image below (in blue/cyan) are possible... I've tried a lot of different combinations of edge attributes and I'm really struggling on getting the edges to look clean and organized and not taking the shortest path possible. Heylo,我只是想看看像我在下图中模拟的边缘(蓝色/青色)是否可能...我尝试了许多不同的边缘属性组合,但我确实很努力使边缘看起来整洁有序,而不要走最短的路径。
My code is as follows and I do not want the subgraphs to move from their current positions so I know a 'constraint = false' will be required for the edges. 我的代码如下,并且我不希望子图从其当前位置移动,因此我知道边缘将需要使用“约束=假”。
digraph G
{
graph [compound = true];
splines = false;
node [style = bold, shape = record, fontcolor = magenta];
subgraph cluster0
{
style = bold; label = “Mac”;
edge [style = invisible, arrowhead = none];
“Finder” -> “Terminal” -> “Safari”;
}
subgraph cluster1
{
style = bold; label = “Windows”;
node_1 [label = “<f0> Start|<f1> Command Prompt”];
}
subgraph cluster2
{
style = bold; label = “Linux”;
node_2 [label = “<f0> Start|<f1> Konsole”];
}
}
Thank you in advance! 先感谢您!
我没有直接答案,但是PlantUML位于GraphVis之上,并生成与您要查找的相似的边-因此您可以生成.dot
文件(请参见Conditional下的第二个示例),检查那里的边缘。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.