Tôi đang cố gắng tạo một biểu đồ có hai biểu đồ con trong dấu chấm. Mã này là như sau:Graphviz subgraph không được hiển thị trực quan
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";
}
Kết quả tôi nhận được trông giống như sau:
tôi mong đợi để xem một hộp xung quanh cả hai đồ thị con. Tôi đang thiếu gì ở đây?
Vì vậy, thuật toán con và cụm đồ thị * cả hai đều dẫn đến nhóm hình ảnh theo thuật toán bố cục? – Chris
Cảm ơn bạn rất nhiều. – sjas