如何强制graphviz中的边缘位置? [英] How to force position of edges in graphviz?

查看:203
本文介绍了如何强制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 b
$ b

alt text http://img98.imageshack。 us / img98 / 8324 / wrong2.gif



我的问题是从E - > C和C - > F的边缘开始/结束于



我怎么能告诉特定的边缘去到右边的节点?在这个节点上的相同点和虚线和虚线的边缘都在节点的右边。该节点?

解决方案

在graphviz邮件列表中发出消息后,我发现至少可以删除E - > C和C - > F重叠问题。


最简单的解决方案是使用
指南针点端口:



C:e - > F [constraint = false]





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?

解决方案

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.

The simplest solution is to use a compass point port:

C:e -> F [constraint=false]

-- Emden

这篇关于如何强制graphviz中的边缘位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆