2016-06-21 53 views
0

我正在使用Debian Jessie。 我已經在今天點工作,我一直無法訂購任何東西 - 即使使用隱形節點伎倆,排名= MAX,等級=相同等 例如,下面的例子:無法訂購點 - Graphviz了

digraph hierarchy { 

       nodesep=1.0 // increases the separation between nodes 

       node [color=Red,fontname=Courier,shape=box] //All nodes will this shape and colour 
       edge [color=Blue, style=dashed] //All the lines look like this 

       Headteacher->{Deputy1 Deputy2 BusinessManager} 
       Deputy1->{Teacher1 Teacher2} 
       BusinessManager->ITManager 
       {rank=same;ITManager Teacher1 Teacher2} // Put them on the same level 
} 

from here只是沒有爲我訂購 - 無論我選擇哪種引擎,例如dot -Kfdp, fdp -Kfdp, neato, etc

一切始於校長在中間 - 即使

Headteacher [label="head teacher", rank=max] 

同樣的,次序例如here也將失敗。

我剛剛發現,儘管我的本地嘗試失敗,但eveything按照預期在GraphvizFiddle上正常工作。 ?

回答

1

Graphviz command line reference確認-K切換到選擇佈局算法以覆蓋從命令別名的名稱推斷任何。如果您需要使用引擎,並且您沒有使用命令,那麼您將需要明確指定它作爲開關參數。

您指定的大多數分層attributes只適用於分層引擎,否則不會產生影響。摘要標識哪些引擎受每個屬性的影響。

+0

在手冊頁中,「layout = engine指示首選佈局引擎(」dot「,」neato「,fdp」等)覆蓋命令的基本名稱或 -K命令行選項的默認值。「 首都K.我在用什麼 – Donnied

+0

我甚至都不知道問題出在哪裏,我讀過的所有內容都表明我必須使用fdp,而不是neato,fdp,twopi,neato都不起作用。 。 – Donnied