I am trying to align subgraph cluster_A A2 with B3 but when I use
{rank=same; A2 B3 }
The box around the subgraph stops working as I expected. Does anyone know how to solve this?
digraph {
graph [compound=true]
node [shape=rect];
subgraph cluster_A {
A2 [shape=plaintext]
A3 [shape=plaintext]
A2->A3 [style=invis]
}
A1 -> A2
A3->A4 [ltail=cluster_A]
B1 -> B2
B2 -> B3
B3 -> B4
B4 -> B5
B5 -> B6
{rank=same; A1 B1 }
{ rank=same; A4 B6 }
}