2016-06-21 34 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