【问题标题】:How to force position of edges in graphviz?如何在graphviz中强制边缘的位置?
【发布时间】:2010-12-01 10:37:01
【问题描述】:

我遇到了边缘相互重叠的问题。在我的previous question of how to force the nodes to be in the same column 中,了解了如何将节点强制为一列,但这会导致出现一些其他问题。

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 的同一点开始/结束,而虚线和虚线边都在节点的右侧。

我如何告诉特定的边去节点的右侧?

【问题讨论】:

    标签: graph graphviz dot


    【解决方案1】:

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

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

    C:e -> F [constraint=false]

    -- 埃姆登

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-02
      • 1970-01-01
      • 2023-03-22
      • 1970-01-01
      • 2013-07-23
      • 1970-01-01
      相关资源
      最近更新 更多