graphviz两个盒子

时间:2013-02-06 06:46:40

标签: graphviz

” 我正在尝试,并试图让一个长箭头指向两个框之间的线,请参阅下面的Graphviz。我做错了什么?

˚F


在此Graphviz中:

<graphviz>

digraph W1
{
rankdir=LR
nodesep = 0.05
node [shape=box,  width="0.8", height="0.5", fontsize="10"];
edge [weight=5]
3,
edge [weight=1]
      4, 5, Nod1, 

node [shape = none];

node [shape = box];
        3 [label = "Compound 2"];
        4 [label = "Compound 1"];
        5 [label = "Compound 3"];

Nod1 [label="N1", shape=diamond,style=filled,label="",height=.01,width=.01] ;
{
3 -> Nod1 
4->Nod1
Nod1->5  

{
rank = same;
Nod1, 3,
}

}
</graphviz>

0 个答案:

没有答案