(五) Graphivz 箭头连接方向

来源:互联网 发布:淘宝上的黄金能买吗 编辑:程序博客网 时间:2024/05/18 03:26

Ports based on the 8 compass points "n", "ne","e", "se", "s", "sw", "w" or "nw" can be specified for any node.

有八种连接方向:n,ne,e,se,s,sw,w,nw。


digraph G {a->b:n[label="n"];c->d:e[label="e"];e->f:ne[label="ne"];g->h:s[label="s"];i->j:se[label="se"];k->l:w[label="w"];m->n:sw[label="sw"];p->q:nw[label="nw"];A -> B[dir = both,label=both];B -> C[dir = none,label=none];C -> D[dir = back,label=back];D -> A[dir = forward,label=forward];}

135857463.png

原创粉丝点击