# Graph formatting (1. Centralising clusters, 2. Avoiding edge intersections)

**URL:** <https://forum.graphviz.org/t/graph-formatting-1-centralising-clusters-2-avoiding-edge-intersections/2274>\
**Category:** Help\
**Created:** [June 18, 2024, 3:31am UTC](https://forum.graphviz.org/t/graph-formatting-1-centralising-clusters-2-avoiding-edge-intersections/2274 "2024-06-18T03:31:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [June 19, 2024, 5:02am UTC](https://forum.graphviz.org/t/graph-formatting-1-centralising-clusters-2-avoiding-edge-intersections/2274/4 "2024-06-19T05:02:55Z")

</div>

Not sure which anonymizer you used (please point to it), but it seems that there is no anonymizer that handles clusters.  
Phooey!

Until a useful anonymizer appears, we will try to move forward.

- There is no graph-level or cluster-level attribute that means “line clusters symmetrically”. It is very difficult to adjust cluster positions. (it would be a nice enhancement)
- Neither is there a way to tell **dot** “be extra careful about node & edge placement” (another nice enhancement)
- However, the **group** attribute ([group | Graphviz](https://graphviz.org/docs/attrs/group/)) might help sweet-talk nodes into alignment and then the clusters that contain them. At this moment I don’t remember if **group** works across clusters. Also, **group** is easier to apply manually than programmatically.
- Another way to align clusters would be to pad them with invisible nodes (ugh, not my first choice)
- Just remembered: **osage** see: [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)  
and  
[How can I center nodes in a Graphviz cluster? - #5 by steveroush](https://forum.graphviz.org/t/how-can-i-center-nodes-in-a-graphviz-cluster/2020/5)
- Side note: have you tried other **spline** types? That wouldn’t rearrange the clusters or nodes, but might help the edge intersections.

---

_[View the full topic](https://forum.graphviz.org/t/graph-formatting-1-centralising-clusters-2-avoiding-edge-intersections/2274)._
