我有兴趣在graphviz中的节点之间绘制垂直省略号,如下所示:

我遇到的问题是,每当我尝试这样做时,我似乎都无法获得x3并xn垂直排列,如下所示:

这是我尝试过的:
digraph G {
rankdir=LR
splines=line
subgraph cluster_0 {
color=white;
node [style=solid, color=black, shape=circle];
x1 x2 x3 xn [group=g1];
label = "Input Features";
}
subgraph cluster_1 {
color=white;
node [style=solid, color=red2, shape=circle];
a1 [group=g2];
label = "Activation";
}
subgraph cluster_2 {
color=white;
node [style=solid, color=green, shape=circle];
out [group=g3];
label = "Output";
}
x1 -> a1;
x2 -> a1;
x3 -> a1;
a1 -> out;
x3 -> xn [arrowhead="none", color="black:invis:black"];
}
我对graphviz很陌生,所以我什至不确定我是否在这里正确使用了子图。我还尝试将子图中的节点添加到组中,但这似乎没有任何作用。

