如何引导边缘离开右侧的菱形?
我有一个简单的点图来展示如何执行测试。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需在边声明中的节点名称后面添加 compass_pt
:e
即可(第 5 行)。罗盘点
e
代表东(在右侧)。使用w
表示左侧(西)。还有东北等的ne
。Simply add the compass_pt
:e
right after the node name in the edge declaration (line 5).Compass point
e
stands for East (on the right side). Usew
for the left side (West). There is alsone
for North-East and so on.您可能还想尝试使用
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