我有一张图表,代表了由两个小进程组成的一个大进程。每个小进程都被一个子图表示。但是当我将其中一个子进程(比如说“one”)的结尾连接到另一个子进程(“two”)的开头时,“two”进程的起始形状会出现在“one”的结束点所在的同一集群中。如何使从“one”的结尾指向“two”的开头的箭头,同时保持“two”的起始形状在其自己的集群中?
digraph BigProcess {
graph [ label="Some big process" ]
subgraph clusterSubProcess1 {
graph [ label="Subprocess one", color="red" ]
start1_1 -> start1_2;
start1_2 -> start1_3a;
start1_2 -> start1_3b;
start1_3a -> start1_4;
start1_3b -> start1_5;
start1_4 -> start1_1;
start1_5 -> start2_1;
}
subgraph clusterSubProcess2 {
graph [ label="Subprocess two", color="blue" ]
start2_1 -> start2_2;
start2_2 -> start2_3a;
start2_2 -> start2_3b;
start2_3a -> start2_4;
start2_3b -> start2_5;
start2_4 -> start2_1;
start2_5 -> end1;
}
}
这将导致以下结果,我真的希望start2_1成为蓝色边框框内的顶级节点。