45
我想创建一个图中有两个子图的点。代码如下:Graphviz子图不可见
digraph G {
subgraph step1 {
style=filled;
node [label="Compiler"] step1_Compiler;
node [label="Maschine"] step1_Maschine;
color=lightgrey;
}
subgraph step2 {
style=filled;
color=lightgrey;
node [label="Interpretierer"] step2_Interpretierer;
node [label="Maschine"] step2_Maschine;
label="Virtuelle Maschine";
}
"Programm (Java)" -> step1_Compiler;
step1_Compiler -> step1_Maschine;
step1_Maschine -> "Bytecode";
"Bytecode" -> step2_Interpretierer;
step2_Interpretierer -> step2_Maschine;
step2_Maschine -> "Ergebnis";
}
结果我得到如下所示:
我期望看到两个子图周围的框。我在这里错过了什么?
那么子图和子图簇*都会在布局算法下产生一个可视化分组吗? – Chris
非常感谢你。 – sjas