TBbalance
Which rank to move floating (loose) nodes to
type: string, default: ''
Valid options:
"min"
: Move floating (loose) nodes to minimumrank
."max"
: Move floating (loose) nodes to maximumrank
.- Otherwise, floating nodes are placed anywhere.
Despite the name TBbalance
("Top-Bottom Balance"), this also works with
left-right ranks, e.g. rankdir=LR
.
Examples:
Default Behaviour
digraph {
layout="dot"
{ rank="min"; "min" }
{ rank="max"; "max" }
"min" -> "middle" -> "max"
"Floater 1"
"Floater 2"
}
Floating nodes moved to min rank
digraph {
layout="dot"
TBbalance="min"
{ rank="min"; "min" }
{ rank="max"; "max" }
"min" -> "middle" -> "max"
"Floater 1"
"Floater 2"
}
Floating nodes moved to max rank
digraph {
layout="dot"
TBbalance="max"
{ rank="min"; "min" }
{ rank="max"; "max" }
"min" -> "middle" -> "max"
"Floater 1"
"Floater 2"
}
- Graphs
Note: dot only.