blog/files/algorithms/rb-trees/rules/red-root/rr_4_light.svg

134 lines
6.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.43.0 (0)
-->
<!-- Title: RBTree Pages: 1 -->
<svg width="314pt" height="260pt"
viewBox="0.00 0.00 314.00 260.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 256)">
<title>RBTree</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-256 310,-256 310,4 -4,4"/>
<!-- 139660434247376 -->
<g id="node1" class="node">
<title>139660434247376</title>
<ellipse fill="none" stroke="red" cx="135" cy="-234" rx="27" ry="18"/>
<text text-anchor="middle" x="135" y="-230.3" font-family="'Cascadia Code PL', 'JetBrains Mono', 'Iosevka', 'Fira Code', 'Hack', monospace" font-size="14.00">9</text>
</g>
<!-- 139660436098128 -->
<g id="node2" class="node">
<title>139660436098128</title>
<ellipse fill="none" stroke="black" cx="99" cy="-162" rx="27" ry="18"/>
<text text-anchor="middle" x="99" y="-158.3" font-family="'Cascadia Code PL', 'JetBrains Mono', 'Iosevka', 'Fira Code', 'Hack', monospace" font-size="14.00">5</text>
</g>
<!-- 139660434247376&#45;&gt;139660436098128 -->
<g id="edge1" class="edge">
<title>139660434247376&#45;&gt;139660436098128</title>
<path fill="none" stroke="black" d="M126.65,-216.76C122.29,-208.28 116.85,-197.71 111.96,-188.2"/>
<polygon fill="black" stroke="black" points="114.99,-186.44 107.3,-179.15 108.77,-189.64 114.99,-186.44"/>
</g>
<!-- 139660435791312 -->
<g id="node7" class="node">
<title>139660435791312</title>
<ellipse fill="none" stroke="black" cx="171" cy="-162" rx="27" ry="18"/>
<text text-anchor="middle" x="171" y="-158.3" font-family="'Cascadia Code PL', 'JetBrains Mono', 'Iosevka', 'Fira Code', 'Hack', monospace" font-size="14.00">12</text>
</g>
<!-- 139660434247376&#45;&gt;139660435791312 -->
<g id="edge6" class="edge">
<title>139660434247376&#45;&gt;139660435791312</title>
<path fill="none" stroke="black" d="M143.35,-216.76C147.71,-208.28 153.15,-197.71 158.04,-188.2"/>
<polygon fill="black" stroke="black" points="161.23,-189.64 162.7,-179.15 155.01,-186.44 161.23,-189.64"/>
</g>
<!-- 139660435887760 -->
<g id="node3" class="node">
<title>139660435887760</title>
<ellipse fill="none" stroke="red" cx="27" cy="-90" rx="27" ry="18"/>
<text text-anchor="middle" x="27" y="-86.3" font-family="'Cascadia Code PL', 'JetBrains Mono', 'Iosevka', 'Fira Code', 'Hack', monospace" font-size="14.00">2</text>
</g>
<!-- 139660436098128&#45;&gt;139660435887760 -->
<g id="edge2" class="edge">
<title>139660436098128&#45;&gt;139660435887760</title>
<path fill="none" stroke="red" d="M84.43,-146.83C74.25,-136.94 60.48,-123.55 48.97,-112.36"/>
<polygon fill="red" stroke="red" points="51.41,-109.85 41.8,-105.38 46.53,-114.87 51.41,-109.85"/>
</g>
<!-- R139660436098128 -->
<g id="node6" class="node">
<title>R139660436098128</title>
<ellipse fill="none" stroke="transparent" cx="99" cy="-90" rx="27" ry="18"/>
</g>
<!-- 139660436098128&#45;&gt;R139660436098128 -->
<g id="edge5" class="edge">
<title>139660436098128&#45;&gt;R139660436098128</title>
<path fill="none" stroke="black" d="M99,-143.7C99,-135.98 99,-126.71 99,-118.11"/>
<polygon fill="black" stroke="black" points="102.5,-118.1 99,-108.1 95.5,-118.1 102.5,-118.1"/>
</g>
<!-- L139660435887760 -->
<g id="node4" class="node">
<title>L139660435887760</title>
<ellipse fill="none" stroke="transparent" cx="27" cy="-18" rx="27" ry="18"/>
</g>
<!-- 139660435887760&#45;&gt;L139660435887760 -->
<g id="edge3" class="edge">
<title>139660435887760&#45;&gt;L139660435887760</title>
<path fill="none" stroke="black" d="M27,-71.7C27,-63.98 27,-54.71 27,-46.11"/>
<polygon fill="black" stroke="black" points="30.5,-46.1 27,-36.1 23.5,-46.1 30.5,-46.1"/>
</g>
<!-- R139660435887760 -->
<g id="node5" class="node">
<title>R139660435887760</title>
<ellipse fill="none" stroke="transparent" cx="99" cy="-18" rx="27" ry="18"/>
</g>
<!-- 139660435887760&#45;&gt;R139660435887760 -->
<g id="edge4" class="edge">
<title>139660435887760&#45;&gt;R139660435887760</title>
<path fill="none" stroke="black" d="M41.57,-74.83C51.75,-64.94 65.52,-51.55 77.03,-40.36"/>
<polygon fill="black" stroke="black" points="79.47,-42.87 84.2,-33.38 74.59,-37.85 79.47,-42.87"/>
</g>
<!-- L139660435791312 -->
<g id="node8" class="node">
<title>L139660435791312</title>
<ellipse fill="none" stroke="transparent" cx="171" cy="-90" rx="27" ry="18"/>
</g>
<!-- 139660435791312&#45;&gt;L139660435791312 -->
<g id="edge7" class="edge">
<title>139660435791312&#45;&gt;L139660435791312</title>
<path fill="none" stroke="black" d="M171,-143.7C171,-135.98 171,-126.71 171,-118.11"/>
<polygon fill="black" stroke="black" points="174.5,-118.1 171,-108.1 167.5,-118.1 174.5,-118.1"/>
</g>
<!-- 139660435887824 -->
<g id="node9" class="node">
<title>139660435887824</title>
<ellipse fill="none" stroke="red" cx="243" cy="-90" rx="27" ry="18"/>
<text text-anchor="middle" x="243" y="-86.3" font-family="'Cascadia Code PL', 'JetBrains Mono', 'Iosevka', 'Fira Code', 'Hack', monospace" font-size="14.00">18</text>
</g>
<!-- 139660435791312&#45;&gt;139660435887824 -->
<g id="edge8" class="edge">
<title>139660435791312&#45;&gt;139660435887824</title>
<path fill="none" stroke="red" d="M185.57,-146.83C195.75,-136.94 209.52,-123.55 221.03,-112.36"/>
<polygon fill="red" stroke="red" points="223.47,-114.87 228.2,-105.38 218.59,-109.85 223.47,-114.87"/>
</g>
<!-- L139660435887824 -->
<g id="node10" class="node">
<title>L139660435887824</title>
<ellipse fill="none" stroke="transparent" cx="207" cy="-18" rx="27" ry="18"/>
</g>
<!-- 139660435887824&#45;&gt;L139660435887824 -->
<g id="edge9" class="edge">
<title>139660435887824&#45;&gt;L139660435887824</title>
<path fill="none" stroke="black" d="M234.65,-72.76C230.29,-64.28 224.85,-53.71 219.96,-44.2"/>
<polygon fill="black" stroke="black" points="222.99,-42.44 215.3,-35.15 216.77,-45.64 222.99,-42.44"/>
</g>
<!-- R139660435887824 -->
<g id="node11" class="node">
<title>R139660435887824</title>
<ellipse fill="none" stroke="transparent" cx="279" cy="-18" rx="27" ry="18"/>
</g>
<!-- 139660435887824&#45;&gt;R139660435887824 -->
<g id="edge10" class="edge">
<title>139660435887824&#45;&gt;R139660435887824</title>
<path fill="none" stroke="black" d="M251.35,-72.76C255.71,-64.28 261.15,-53.71 266.04,-44.2"/>
<polygon fill="black" stroke="black" points="269.23,-45.64 270.7,-35.15 263.01,-42.44 269.23,-45.64"/>
</g>
</g>
</svg>