2009-09-25 71 views
5

我遇到了彼此重叠的边缘问题。在我的previous question of how to force the nodes to be in the same column中,发现了如何强制节点进入一列,但这会导致出现其他一些问题。如何在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"] 
} 

呈现给:

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

我的问题是从E边缘 - > C和C - > F的开始/在节点C和虚线相同的点结束并且虚线边缘都在节点的右侧。

我怎么能告诉特定的边缘去节点的右侧?

回答

9

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

最简单的解决方案是使用一个 罗盘点端口:

C:e -> F [constraint=false]

- 埃姆登