如何引导边缘离开右侧的菱形?

发布于 2024-08-31 09:01:04 字数 995 浏览 4 评论 0 原文

我有一个简单的点图来展示如何执行测试。

PerformTests;                                     PerformTests<---+
PerformTests -> TestsPassed;                            |         |
TestsPassed [shape="diamond"];                          v         |
TestsPassed -> Release [label="Yes"];             TestsPassed     |
TestsPassed -> FixErrors [label="No"];                 Y|  N\     |
FixErrors -> PerformTests;                              v    FixErrors
                                                     Release 

该图显示了所有节点的方框,除了具有菱形形状的 TestPassed 之外。我的问题就在这里。我希望“否”的菱形外部的边缘在右侧(东)离开菱形,而不是向右倾斜(东南)。

           What I have        What I want
                ^                  ^    
               / \                / \   
              <   >              <   >--->  
               \ /\               \ /   
                v  \               v    

我在点语法中见过这样的 compass_pt ,但不知道如何使用它。我想要什么可能,以及如何做到?

I have a simple dot diagram to show how to perform tests.

PerformTests;                                     PerformTests<---+
PerformTests -> TestsPassed;                            |         |
TestsPassed [shape="diamond"];                          v         |
TestsPassed -> Release [label="Yes"];             TestsPassed     |
TestsPassed -> FixErrors [label="No"];                 Y|  N\     |
FixErrors -> PerformTests;                              v    FixErrors
                                                     Release 

The diagram shows square boxes for all nodes, except TestPassed that has a diamond shape. My issue is here. I'd like the edge that goes outside of the diamond for No to be getting out of the diamond at the right (east) instead of oblique down-right (south-east).

           What I have        What I want
                ^                  ^    
               / \                / \   
              <   >              <   >--->  
               \ /\               \ /   
                v  \               v    

I've seen such compass_pt in the dot grammar, but cannot figure out how to use it. I what I want possible, and how to do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

寂寞花火° 2024-09-07 09:01:04

只需在边声明中的节点名称后面添加 compass_pt :e 即可(第 5 行)。

PerformTests;                                     PerformTests<-----+
PerformTests -> TestsPassed;                            |           |
TestsPassed [shape="diamond"];                          v     N     |
TestsPassed -> Release [label="Yes"];             TestsPassed --> FixErrors
TestsPassed:e -> FixErrors [label="No"];               Y|  
FixErrors -> PerformTests;                              v
                                                     Release 

罗盘点 e 代表东(在右侧)。使用 w 表示左侧(西)。还有东北等的ne

Simply add the compass_pt :e right after the node name in the edge declaration (line 5).

PerformTests;                                     PerformTests<-----+
PerformTests -> TestsPassed;                            |           |
TestsPassed [shape="diamond"];                          v     N     |
TestsPassed -> Release [label="Yes"];             TestsPassed --> FixErrors
TestsPassed:e -> FixErrors [label="No"];               Y|  
FixErrors -> PerformTests;                              v
                                                     Release 

Compass point e stands for East (on the right side). Use w for the left side (West). There is also ne for North-East and so on.

那伤。 2024-09-07 09:01:04

您可能还想尝试使用 constraint='false' 属性:

http://martin-loetzsch.de/DOTML/constraint.html

You also might want to try using the constraint='false' attribute:

http://martin-loetzsch.de/DOTML/constraint.html

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