如何解决如何有分支箭头?
我想要这样的分支箭头:
这是我当前的代码:
digraph {
splines=curved
a -> b -> c -> d -> e
e -> a [ label=1 ]
e -> f [ label=2 ]
}
有a trick to use an invisible joint node
digraph {
splines=curved
a -> b -> c -> d -> e
e -> joint [ dir=none ]
joint [shape="none",label="",width=0,height=0]
joint -> a [ label=1 ]
joint -> f [ label=2 ]
}
但是 e -> a
箭头太长了。并且箭头 2 仍然不与箭头 1 相切。
有没有办法达到这个效果?
解决方法
这是一个提示:
digraph {
splines=curved
a -> b -> c -> d -> e
e -> joint [ dir=none ]
joint [shape="none",label="",width=0,height=0]
joint -> a [ label=1 ]
joint -> f [ label=2 ]
a -> f [style=invis] //pull a and f together ~ "tangent" effect
}
我怀疑是否有更好的解决方案,Graphviz 就是这样。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。