简体   繁体   English

如何使用Circo布局防止graphviz中的边缘重叠

[英]How to prevent edge lapping in graphviz with circo layout

I was trying to draw a circular graph using GraphViz, and decided it would be the best to use circo for this graph. 我试图使用GraphViz绘制圆形图,并决定对这种图使用circo最好。

Having taken advice in a post from 7 years ago, How to prevent edges in graphviz to overlap each other , and using global overlap=false and splines=true , the edges still overlap with each other. 在7年前的一篇文章中已获得建议,即如何防止graphviz中的边彼此重叠 ,并使用global overlap=falsesplines=true ,边仍彼此重叠。

The whole graph can be seen here , and is defined as: 整个图可以在此处看到,并定义为:

digraph question6 {

 layout="circo"
 overlap=false
 splines=true
 node [shape="circle"]

 G1 [label="1, G"]
 G2 [label="2, G"]
 D11 [label="1, D1"]
 D12 [label="2, D1"]
 D21 [label="1, D2"]
 D22 [label="2, D2"]

 G1 -> D12 [label="c"]
 G1 -> G2 [label="a"]
 G2 -> D12 [label="a"]
 D11 -> G1 [label="d"]
 D11 -> D21 [label="e"]
 D11 -> D12  [label="c"]
 D12 -> G2 [label="d"]
 D12 -> D22 [label="c"]
 D21 -> G1 [label="d"]
 D21 -> D22 [label="c"]

 D22 -> D21 [label="b"]
 D22 -> G2 [label="d"]
}

As for now, there is not a viable way for this. 到目前为止,还没有可行的方法。

One of the very difficult things that GraphViz is not yet able to resolve is to determine if the graph is planar . GraphViz尚无法解决的非常困难的事情之一就是确定图形是否是平面的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM