Layout subgraph into a grid

I suggest to take a look at the osage layout, where you have much more control over how clusters are positioned.
full explanation can be found here, comment from @jjlong: Top Rank Node is not center aligned over some subgraphs - #5 by jjlong

other example:Is there a way to draw "desks" (2 boxes side by side and 2 below them) without using arrows on graphviz?