在Graphviz中,如何在边缘中间添加形状? [英] In Graphviz, how do I add a shape in the middle of an edge?
本文介绍了在Graphviz中,如何在边缘中间添加形状?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用红色注释了以下图形,以说明我要达到的效果:
I have annotated the following drawing with red to illustrate the effect I'm trying to achieve:
关于我如何在Graphviz中实现这一目标的任何想法?
Any idea on how I can achieve this in Graphviz?
推荐答案
您可以通过查找合适的unicode符号(例如您的情况下的⋃
),并使用 headlabel 属性:
You can imitate this behavior by finding a suitable unicode symbol, for example, ⋃
in your case, and putting it into the right position using headlabel attribute:
digraph {
edge [arrowhead=none]
Student [shape=rect]
Faculty [shape=rect]
o
Player [shape=rect]
Student -> o
Faculty -> o
o -> Player [
headlabel="⋃"
fontsize="25"
labeldistance="1.7"
labelangle=0
]
}
结果:
这篇关于在Graphviz中,如何在边缘中间添加形状?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文