# Vertically stack square nodes horizontally arranged with vertical connections

**URL:** <https://forum.graphviz.org/t/vertically-stack-square-nodes-horizontally-arranged-with-vertical-connections/1660>\
**Category:** Help\
**Created:** [June 13, 2023, 8:23pm UTC](https://forum.graphviz.org/t/vertically-stack-square-nodes-horizontally-arranged-with-vertical-connections/1660 "2023-06-13T20:23:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)\
**Post date:** [June 13, 2023, 8:41pm UTC](https://forum.graphviz.org/t/vertically-stack-square-nodes-horizontally-arranged-with-vertical-connections/1660/2 "2023-06-13T20:41:23Z")

</div>

You can use `constraint=false` for that edge and reorder the subgraphs to keep the full set at the top.

Try it yourself [here](http://magjac.com/graphviz-visual-editor/?dot=digraph%20ec%20%7B%0A%20%20rankdir%3DLR%0A%20%20node%20%5Blabel%3D%22%22%5D%0A%20%20edge%20%5Bstyle%3D%22invis%22%5D%0A%0A%20%20subgraph%20fullset%20%7B%0A%20%20%20%20node%20%5Bshape%3D%22square%22%5D%0A%20%20%20%20fs0%0A%20%20%20%20fs1%0A%20%20%20%20fs2%0A%20%20%20%20fs3%0A%20%20%20%20fs4%0A%20%20%20%20fs5%0A%20%20%20%20fs6%0A%20%20%20%20fs7%0A%0A%20%20%20%20fs0%20-%3E%20fs1%20-%3E%20fs2%20-%3E%20fs3%20-%3E%20fs4%20-%3E%20fs5%20-%3E%20fs6%20-%3E%20fs7%0A%20%20%7D%0A%20%20subgraph%20subset%20%7B%0A%20%20%20%20node%20%5Bshape%3D%22square%22%5D%0A%20%20%20%20s0%0A%20%20%20%20s3%0A%20%20%20%20s5%0A%20%20%20%20s6%0A%0A%20%20%20%20node%20%5Bshape%3D%22none%22%5D%0A%20%20%20%20s1%0A%20%20%20%20s2%0A%20%20%20%20s4%0A%20%20%20%20s7%0A%0A%20%20%20%20s0%20-%3E%20s1%20-%3E%20s2%20-%3E%20s3%20-%3E%20s4%20-%3E%20s5%20-%3E%20s6%20-%3E%20s7%0A%20%20%7D%0A%0A%0A%20%20s3%20-%3E%20fs3%20%5Bstyle%3D%22line%22%20constraint%3Dfalse%5D%20%20%2F%2F%20vertical%20connection%0A%7D).

---

_[View the full topic](https://forum.graphviz.org/t/vertically-stack-square-nodes-horizontally-arranged-with-vertical-connections/1660)._
