Graphviz 如何在点中创建簇?
假设,我想在图中的几个节点之间建立一个子集群(以某种方式表示这些节点出于某种原因而聚集在一起,例如): 正如你所看到的,我只是部分成功。也就是说,Graphviz 如何在点中创建簇?,graphviz,dot,Graphviz,Dot,假设,我想在图中的几个节点之间建立一个子集群(以某种方式表示这些节点出于某种原因而聚集在一起,例如): 正如你所看到的,我只是部分成功。也就是说,asti位于其自身的灰显集群中,但节点B和E不在其中 有人能指出我如何将所有三个节点E、B和asti放置在灰色集群中吗 谢谢 使用newrank=true避免“取消装箱”群集 digraph G { A [group=g1] {rank = same; B[group=g2]; C[group=g3]} D [group=g1] {r
asti
位于其自身的灰显集群中,但节点B
和E
不在其中
有人能指出我如何将所有三个节点E
、B
和asti
放置在灰色集群中吗
谢谢
使用
newrank=true
避免“取消装箱”群集
digraph G {
A [group=g1]
{rank = same; B[group=g2]; C[group=g3]}
D [group=g1]
{rank = same; E[group=g2]; F[group=g3]}
A -> B [label="2", weight=2]
A -> C [label="0", style=dashed, weight=2]
B -> C [label="0", style=dashed, weight=2]
B -> D [label="2", style=dashed, weight=2]
C -> D [label="0", weight=2]
D -> E [label="1", style=dashed, weight=2]
D -> F [label="0", weight=2]
E -> F [label="0", weight=2]
F -> A
edge[style=invis];
A -> D
B -> E
C -> F
subgraph cluster_0 {
label = "I want this in its own sub-square"
B->E
B->Asti
style=filled;
color=lightgrey;
node [style=filled,color=white];
edge[style=invis];
}
}
digraph G {
newrank=true;
A [group=g1]
{rank = same; B[group=g2]; C[group=g3]}
D [group=g1]
{rank = same; E[group=g2]; F[group=g3]}
A -> B [label="2", weight=2]
A -> C [label="0", style=dashed, weight=2]
B -> C [label="0", style=dashed, weight=2]
B -> D [label="2", style=dashed, weight=2]
C -> D [label="0", weight=2]
D -> E [label="1", style=dashed, weight=2]
D -> F [label="0", weight=2]
E -> F [label="0", weight=2]
F -> A
edge[style=invis];
A -> D
B -> E
C -> F
subgraph cluster_0 {
label = "I want this in its own sub-square"
B->E
B->Asti
style=filled;
color=lightgrey;
node [style=filled,color=white];
edge[style=invis];
}
}