rank
Rank constraints on the nodes in a subgraph
type:rankType
- If
rank="same"
, all nodes are placed on the same rank. - If
rank="min"
, all nodes are placed on the minimum rank. - If
rank="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"
Last modified June 12, 2022:add simple descriptions for attributes (b2a18ac)