如何在 graphviz 中强制边缘的位置?
我遇到边缘相互重叠的问题。在我的 上一个关于如何强制节点的问题中为了在同一列中,找到了如何强制节点进入一列,但这会导致出现一些其他问题。
digraph exmp {
A -> B -> C -> D -> E
C -> F [constraint=false]
A -> C [style="dotted", constraint=false]
A -> D [style="dotted", constraint=false]
B -> D [constraint=false]
D -> A [style="dashed", constraint=false]
C -> A [style="dashed", constraint=false]
E -> F [style="invis"]
F -> G
E -> C [constraint="false"]
}
渲染至:
替代文本 http://img98.imageshack.us/img98/8324/wrong2 .gif
我的问题是 E -> 的边缘C和C-> F 在节点 C 中的同一点开始/结束,并且虚线和点线边缘均位于节点的右侧。
我如何告诉特定的边到节点的右侧?
I'm having problems with edges overlapping each other. In my previous question of how to force the nodes to be in the same column, found out how to force the nodes in to one column, but this causes some other problems to appear.
digraph exmp {
A -> B -> C -> D -> E
C -> F [constraint=false]
A -> C [style="dotted", constraint=false]
A -> D [style="dotted", constraint=false]
B -> D [constraint=false]
D -> A [style="dashed", constraint=false]
C -> A [style="dashed", constraint=false]
E -> F [style="invis"]
F -> G
E -> C [constraint="false"]
}
Renders to:
alt text http://img98.imageshack.us/img98/8324/wrong2.gif
My problem is that the edges from E -> C and C -> F are starting/ending at the same point in the node C and the dashed and dotted edges are all on the right side of the nodes.
How could I tell specific edges to go to the right side of the node?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 graphviz 邮件列表中的一条消息之后,我发现至少可以删除 E -> C和C-> F 重叠问题。
After a message in the graphviz mail list I've found that's at least possible to remove the E -> C and C -> F overlapping problem.