GraphViz自定义背向箭头

GraphViz自定义背向箭头,graphviz,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" [

我有以下代码:

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"];
}
这给了我:

我工作得很好,但GitObject方向的箭头不正常,它们是不是一种方法

谢谢你的帮助, 提前感谢。

对于未正确显示的边缘,只需使用
arrowtail=“onormal”
而不是
arrowhead=“onormal”


arrowtail
总是指定义的边的尾部,不考虑
dir=back

我似乎无法使arrowtail正常工作,您能确认吗?(似乎不适用于有向图)