blog/files/ib002/rb-trees/rules/red-node-black-children/correct.dot

34 lines
1.3 KiB
Text
Raw Normal View History

digraph {
"Node(value=3, rank=2)" [label="3"]; #done
"Node(value=1, rank=1)" [label="1", color="red"]; #done
"Node(value=4, rank=0)" [label="4", color="red"]; #done
"Node(value=7, rank=0)" [label="7", color="red"]; #done
"Node(value=0, rank=0)" [label="0"]; #done
"Node(value=2, rank=0)" [label="2"]; #done
"Node(value=5, rank=1)" [label="5"]; #done
"nil2" [label="", color=none]
"nil3" [label="", color=none]
"nil4" [label="", color=none]
"nil5" [label="", color=none]
"nil6" [label="", color=none]
"nil7" [label="", color=none]
"nil8" [label="", color=none]
"nil9" [label="", color=none]
"Node(value=3, rank=2)" -> "Node(value=1, rank=1)" #done
"Node(value=1, rank=1)" -> "Node(value=0, rank=0)" #done
"Node(value=1, rank=1)" -> "Node(value=2, rank=0)" #done
"Node(value=3, rank=2)" -> "Node(value=5, rank=1)" #done
"Node(value=5, rank=1)" -> "Node(value=4, rank=0)" #done
"Node(value=5, rank=1)" -> "Node(value=7, rank=0)" [color="red"] #done
"Node(value=0, rank=0)" -> "nil2"
"Node(value=0, rank=0)" -> "nil3"
"Node(value=2, rank=0)" -> "nil4"
"Node(value=2, rank=0)" -> "nil5"
"Node(value=4, rank=0)" -> "nil6"
"Node(value=4, rank=0)" -> "nil7"
"Node(value=7, rank=0)" -> "nil8"
"Node(value=7, rank=0)" -> "nil9"
}