type: rankType
rank="same", all nodes are placed on the same rank.rank="min", all nodes are placed on the minimum rank.rank="source", all nodes are placed on the minimum rank, and the only nodes on the minimum rank belong to some subgraph with rank="source" or rank="min".Analogous criteria hold for rank="max" and rank="sink".
(Note: the minimum rank is topmost or leftmost, and the maximum rank is bottommost or rightmost.)
For more information check this answer in Stack Overflow
Valid on:Note: dot only.
© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/rank/