I give the following input to Dot: digraph G { subgraph cluster1 { fontsize = 20; label = "Group 1"; A -> B -> C -> D; style = "dashed"; } subgraph { O [shape=box]; } subgraph cluster2 { fontsize = 20; label = "Group 2"; Z -> Y -> X -> W [dir=back]; style = "dashed"; } D -> O [constraint=false]; W -> O [constraint=false, dir=back]; } And it produces: How can I align node O so that it has the same