我有以下代码:
digraph "Classes utilisées par Git"
{
subgraph mother
{
O [shape=record, label = "{GitObject| ref (sha1)}"];
}
subgraph herited
{
rankdir=LR;
rank="same";
"Tree" [shape=box];
"Tag" [shape=box];
"Blob" [shape=box];
"Commit" [shape=box];
}
O -> "Tree" [arrowhead="onormal", dir=back];
O -> "Blob" [arrowhead="onormal", dir=back];
O -> "Commit" [arrowhead="onormal", dir=back];
O -> "Tag" [arrowhead="onormal", dir=back];
"Tree" -> "Tree" [arrowhead="vee", label=" 0..*\n0..*1"];
"Tree" -> "Blob" [arrowhead="vee", label=" 0..*\n1"];
"Commit" -> "Tree" [arrowhead="vee", label=" 1..*\n1"];
"Tag" -> "Commit" [arrowhead="vee", label=" 0..*\n1"];
}
给了我:
我运作良好,但GitOject方向的箭头不是正常的,是他们的方法吗?
为了你的帮助, 先谢谢。
答案 0 :(得分:1)
只需使用arrowtail="onormal"
代替arrowhead="onormal"
即可正确显示边缘。
arrowtail
始终引用定义的边缘尾部,并未考虑dir=back
。