# Layout subgraph into a grid

**URL:** <https://forum.graphviz.org/t/layout-subgraph-into-a-grid/2831>\
**Category:** Help\
**Created:** [March 18, 2025, 10:36am UTC](https://forum.graphviz.org/t/layout-subgraph-into-a-grid/2831 "2025-03-18T10:36:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![BartB](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BartB](https://forum.graphviz.org/u/BartB)\
**Post date:** [March 19, 2025, 6:22pm UTC](https://forum.graphviz.org/t/layout-subgraph-into-a-grid/2831/12 "2025-03-19T18:22:15Z")

</div>

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](https://forum.graphviz.org/t/top-rank-node-is-not-center-aligned-over-some-subgraphs/2338/5)

other example:[Is there a way to draw "desks" (2 boxes side by side and 2 below them) without using arrows on graphviz?](https://forum.graphviz.org/t/is-there-a-way-to-draw-desks-2-boxes-side-by-side-and-2-below-them-without-using-arrows-on-graphviz/1987)

---

_[View the full topic](https://forum.graphviz.org/t/layout-subgraph-into-a-grid/2831)._
