我想用以下代码对某些节点进行分组
digraph dataflow {
subgraph pipeline {
relations;
synonyms;
articles;
}
subgraph lucene {
index;
search;
}
training_data - > index;
relations - > search;
synonyms - > index;
articles - > index;
training_data - > evaluation;
}
但是dot并不关心子图:
答案 0 :(得分:30)
尝试使用'cluster _'为子图添加前缀:
digraph dataflow {
subgraph cluster_pipeline {
relations;
synonyms;
articles;
}
subgraph cluster_lucene {
index;
search;
}
training_data -> index;
relations -> search;
synonyms -> index;
articles -> index;
training_data -> evaluation;
}