如何在 graphviz 中强制边缘的位置?

发布于 2024-08-05 07:57:07 字数 854 浏览 2 评论 0原文

我遇到边缘相互重叠的问题。在我的 上一个关于如何强制节点的问题中为了在同一列中,找到了如何强制节点进入一列,但这会导致出现一些其他问题。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪落纷纷 2024-08-12 07:57:07

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

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

<代码>C:e -> F [constraint=false]

-- 埃姆登

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文