rank

Rank constraints on the nodes in a subgraph

type:rankType

  • Ifrank="same", all nodes are placed on the same rank.
  • Ifrank="min", all nodes are placed on the minimum rank.
  • Ifrank="source", all nodes are placed on the minimum rank, andthe only nodes on the minimum rank belong to some subgraph withrank="source" orrank="min".

Analogous criteria hold forrank="max" andrank="sink".

(Note: the minimum rank is topmost or leftmost, and the maximum rank isbottommost or rightmost.)

For more information checkthis answer in Stack Overflow

Valid on:
  • Subgraphs

Note:dot only.

Search the Graphviz codebase for"rank"