0
我作了如下圖:的Graphviz:水平對齊方式不工作向後箭頭
我想添加一個額外的箭頭,從「遠程回購」一路「工作副本指回「(標有‘混帳拉’),我想有一個箭頭最好先會小幅回落,然後離開,再向上。
當我只是一個箭頭添加到代碼,圖形最終看起來像這樣:
這是代碼:
digraph G {
/* set direction of graph to be left-->right */
rankdir="LR";
/* make boxes instead of ellipses */
node [shape=box];
/* should enforce nodes to be horizontally aligned */
/* is not working, though... */
rank=same;
/* assign labels to nodes */
wc [label="working copy"];
id [label="index"];
lr [label="local repo"];
rr [label="remote repo"];
wc -> id [label="git add"];
id -> lr [label="git commit"];
lr -> rr [label="git push"];
rr -> wc [label="git pull"];
}
問題:爲什麼水平對齊被破壞以及如何解決這個問題?
後續問題:如何使箭頭朝下,然後離開,然後向上? (或者說是做到這一點使用某種程度上無形/假節點的唯一途徑?)