【发布时间】:2016-06-25 06:06:33
【问题描述】:
我正在使用 Debian Jessie。 我今天一直在研究 dot,但我无法订购任何东西——即使使用不可见节点技巧、rank=max、rank=same 等。 比如这个例子:
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
}
来自here 只是不为我订购 - 无论我选择哪种引擎,例如dot -Kfdp, fdp -Kfdp, neato, etc。
一切都从中间的校长开始——即使是
Headteacher [label="head teacher", rank=max]
同样,订购示例here 也失败了。
我刚刚发现,虽然我的本地尝试失败了,但 GraphvizFiddle 上的一切都按预期工作。 ?
【问题讨论】: