1
我有以下代碼:GraphViz的定製後退箭頭
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的方向箭頭不是onormal,是他們的一種方式這是什麼?
對您的幫助, 提前致謝。
太棒了,它與dir = back – GlinesMome
一起工作我似乎無法得到箭頭工作,你能證實嗎? (似乎不適用於有向圖) –