# Arranging subgraphs and positions of elements in a digraph

**URL:** <https://forum.graphviz.org/t/arranging-subgraphs-and-positions-of-elements-in-a-digraph/1076>\
**Category:** Help\
**Created:** [March 15, 2022, 4:48pm UTC](https://forum.graphviz.org/t/arranging-subgraphs-and-positions-of-elements-in-a-digraph/1076 "2022-03-15T16:48:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pluro](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@pluro](https://forum.graphviz.org/u/pluro)\
**Post date:** [March 15, 2022, 4:48pm UTC](https://forum.graphviz.org/t/arranging-subgraphs-and-positions-of-elements-in-a-digraph/1076/1 "2022-03-15T16:48:43Z")

</div>

What tactics can be used to arrange the dimensions of a subgraph in a digraph diagram? It appears that edges between nodes can only be constrained by a minlen constraint and not a max length constraint. I have tried adding invisible nodes and edges to the diagram to fix some of the spacing and alignment issues for edges becoming too long and try to to condense them a bit. This has only resulted in the entire diagram becoming larger and the spacing/alignment issues not being solved. Are there any other tactics that could help out solving these alignment issues?

---

<div class="post-metadata">

**Author:** ![scnorth](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/scnorth/32/89_2.png) [@scnorth](https://forum.graphviz.org/u/scnorth)\
**Post date:** [March 15, 2022, 11:20pm UTC](https://forum.graphviz.org/t/arranging-subgraphs-and-positions-of-elements-in-a-digraph/1076/2 "2022-03-15T23:20:39Z")

</div>

I’m not sure graphviz ls well-suited to what you are trying to do.

You might want to look into Tim Dwyer’s WebCola, which handles a more general set of layout constraints.
