# Top Rank Node is not center aligned over some subgraphs

**URL:** https://forum.graphviz.org/t/top-rank-node-is-not-center-aligned-over-some-subgraphs/2338
**Category:** Help
**Created:** [July 13, 2024, 3:24pm UTC](https://forum.graphviz.org/t/top-rank-node-is-not-center-aligned-over-some-subgraphs/2338 "2024-07-13T15:24:17Z")
**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: [July 14, 2024, 4:39pm UTC](https://forum.graphviz.org/t/top-rank-node-is-not-center-aligned-over-some-subgraphs/2338/4 "2024-07-14T16:39:03Z")

</div>

Not sure why the mis-alignment, but enclosing _Plan_ in a cluster seems to work.  
If not we can look at Osage.

 ![pleaseCenter2](https://global.discourse-cdn.com/graphviz/original/2X/0/0db6009acc8bb192f933fd5a9a86c47a9e72ede6.png)

```auto
digraph "ISO 9001 - Orientierung am PDCA-Zyklus" {
  fontname="Arial,Helvetica,sans-serif"
  node [fontname="Arial,Helvetica,sans-serif"]
  edge [fontname="Arial,Helvetica,sans-serif"]
  graph [
    //newrank = true, // probably not necessary
    nodesep = 0.4, // ok
    ranksep = 0.25, // ok
    //overlap = true, // ignored by dot
    //splines = false, // not necessary, all edges are invis
  ]
  node [
    fixedsize = true,
    fontsize = 18 // 90,
    height = 1.1 // 5.5,
    shape = box,
    style = "filled, setlinewidth(5), rounded",
    width = 4 // 19
  ]
  edge [
    style = invis,
  ]
  subgraph clusterPlan {
  peripheries=0

  subgraph Plan
  {
    node [color = "#22bb55"]
    plan [
      label = "Plan",
      height = .5 // 2.5,
      width = 17.2 // 4 * nodewidth + 3 * nodesep
      ]

    subgraph kontext {
      margin = 1 // ???
      kontext4_ [
        label = "4\nKontext der Organisation"
      ]
    }
    subgraph fuehrung {
      fuehrung5_ [
        label = "5\nFührung"
      ]
    }
    subgraph planung {
      planung6_ [
        label = "6\nPlanung"
      ]
    }
    subgraph unterstuetzung {
      unterstuetzung7_ [
        label = "7\nUnterstützung"
      ]
    }

    plan -> kontext4_
    plan -> fuehrung5_
    plan -> planung6_
    plan -> unterstuetzung7_
  }
  }
  subgraph Do {
    node [color = "#cc99aa"]
    do [
        label = "Do",
        height = .5 // 2.5,
      ]
      subgraph betrieb {
      betrieb8_ [
        label = "8\nBetrieb ",
      ]
    }
    do -> betrieb8_
    }
}

```

---

_[View the full topic](https://forum.graphviz.org/t/top-rank-node-is-not-center-aligned-over-some-subgraphs/2338)._
