为什么graphviz绘制两个箭头,并使用奇怪的顺序?

时间:2010-03-14 16:54:49

标签: graph graphviz

为什么graphviz会从uncap_spike中绘制两个箭头来剥离,为什么它会在悬挂的右边画出来?

我想要uncap_spike - >果皮 - >挂 - >尖峰,按顺序,每个之间有一条边。

alt text http://grab.by/33kA

digraph hangers {
    compound=true
    fontname="Gill Sans"

    node [fontname="Gill Sans" shape=box fillcolor=white style="rounded, filled"]
    edge [fontname="Gill Sans"]

    subgraph cluster_prep {
        style="filled"
        label=Prep

        gather [shape=Mrecord label="{gather | EtOH swab\nvented tubing}"]
        uncap_bottle   [label="uncap bottle"]
        uncap_spike [label="uncap spike"]
        swab [shape=Mrecord label="{swab EtOH | wait 30 seconds for sterility}"]
        gather -> uncap_bottle -> swab -> uncap_spike
        {rank=same gather uncap_bottle swab uncap_spike}
    }

    subgraph cluster_hang {
        style=filled
        label=Hang

        {rank=same peel hang}

    }

    {rank=same uncap_spike -> peel -> hang -> spike -> prime}

    hang -> rip [color=firebrick]
    rip [label="eyelet\nripped" style="filled" shape=octagon regular fontcolor=white
     fontsize=10 width=.5 fixedsize color=firebrick fillcolor=firebrick ]

    swab -> not_sterile [color=firebrick]
    not_sterile [label="not\nsterile" style="filled" shape=octagon regular fontcolor=white
     fontsize=10 width=.5 fixedsize color=firebrick fillcolor=firebrick ]


}

1 个答案:

答案 0 :(得分:0)

我认为排名=同样可能令人困惑。你用它来保持水平吗?在这种情况下,有一个属性(rankdir?),您可以将其应用于整个图形。