mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-24 13:53:35 +08:00
118 lines
5.7 KiB
XML
118 lines
5.7 KiB
XML
<?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 13.1.2 (20250808.2320)
|
|
-->
|
|
<!-- Title: binary_search_tree< T > Pages: 1 -->
|
|
<svg width="248pt" height="138pt"
|
|
viewBox="0.00 0.00 248.00 138.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
|
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
|
|
|
<style type="text/css"><![CDATA[
|
|
.node, .edge {opacity: 0.7;}
|
|
.node.selected, .edge.selected {opacity: 1;}
|
|
.edge:hover path { stroke: red; }
|
|
.edge:hover polygon { stroke: red; fill: red; }
|
|
]]></style>
|
|
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
|
<svg id="graph" class="graph">
|
|
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 133.5)">
|
|
<title>binary_search_tree< T ></title>
|
|
<!-- Node1 -->
|
|
<g id="Node000001" class="node">
|
|
<title>Node1</title>
|
|
<g id="a_Node000001"><a xlink:title="The Binary Search Tree class.">
|
|
<polygon fill="#999999" stroke="#666666" points="122.5,-24.88 0,-24.88 0,-5.63 122.5,-5.63 122.5,-24.88"/>
|
|
<text xml:space="preserve" text-anchor="middle" x="61.25" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">binary_search_tree< T ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2 -->
|
|
<g id="Node000002" class="node">
|
|
<title>Node2</title>
|
|
<g id="a_Node000002"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="188.75,-129.5 61.75,-129.5 61.75,-99 188.75,-99 188.75,-129.5"/>
|
|
<text xml:space="preserve" text-anchor="start" x="69.75" y="-116" font-family="Helvetica,sans-Serif" font-size="10.00">std::unique_ptr< binary</text>
|
|
<text xml:space="preserve" text-anchor="middle" x="125.25" y="-104.75" font-family="Helvetica,sans-Serif" font-size="10.00">_search_tree::bst_node ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2->Node1 -->
|
|
<g id="edge1_Node000001_Node000002" class="edge">
|
|
<title>Node2->Node1</title>
|
|
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M87.45,-91.84C83.71,-88.58 80.28,-84.96 77.5,-81 65.39,-63.73 62.29,-38.29 61.5,-25.02"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="85.3,-94.6 95.37,-97.88 89.54,-89.03 85.3,-94.6"/>
|
|
</a>
|
|
</g>
|
|
<text xml:space="preserve" text-anchor="start" x="80.5" y="-60.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">root_</text>
|
|
</g>
|
|
<!-- Node3 -->
|
|
<g id="Node000003" class="node">
|
|
<title>Node3</title>
|
|
<g id="a_Node000003"><a xlink:href="../../dd/db6/structbinary__search__tree_1_1bst__node.html" target="_top" xlink:title="A struct to represent a node in the Binary Search Tree.">
|
|
<polygon fill="white" stroke="#666666" points="239.5,-30.5 141,-30.5 141,0 239.5,0 239.5,-30.5"/>
|
|
<text xml:space="preserve" text-anchor="start" x="149" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">binary_search_tree</text>
|
|
<text xml:space="preserve" text-anchor="middle" x="190.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">< T >::bst_node</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2->Node3 -->
|
|
<g id="edge4_Node000003_Node000002" class="edge">
|
|
<title>Node2->Node3</title>
|
|
<g id="a_edge4_Node000003_Node000002"><a xlink:title=" ">
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M120.35,-87.41C119.33,-74.77 120.28,-59.87 127.5,-48.5 132.16,-41.16 139.06,-35.41 146.6,-30.93"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="116.86,-87.67 121.61,-97.14 123.8,-86.78 116.86,-87.67"/>
|
|
</a>
|
|
</g>
|
|
<text xml:space="preserve" text-anchor="start" x="130.5" y="-68.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">left</text>
|
|
<text xml:space="preserve" text-anchor="start" x="130.5" y="-53.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">right</text>
|
|
</g>
|
|
<!-- Node3->Node2 -->
|
|
<g id="edge2_Node000002_Node000003" class="edge">
|
|
<title>Node3->Node2</title>
|
|
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M179.3,-40.99C173.27,-53.48 165.21,-68.57 156.25,-81 151.8,-87.17 146.21,-93.35 141.01,-98.62"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="182.35,-42.73 183.4,-32.19 176,-39.77 182.35,-42.73"/>
|
|
</a>
|
|
</g>
|
|
<text xml:space="preserve" text-anchor="start" x="178.58" y="-60.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">ptr</text>
|
|
</g>
|
|
<!-- Node4 -->
|
|
<g id="Node000004" class="node">
|
|
<title>Node4</title>
|
|
<g id="a_Node000004"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="235.65,-123.88 206.85,-123.88 206.85,-104.62 235.65,-104.62 235.65,-123.88"/>
|
|
<text xml:space="preserve" text-anchor="middle" x="221.25" y="-110.38" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node4->Node3 -->
|
|
<g id="edge3_Node000003_Node000004" class="edge">
|
|
<title>Node4->Node3</title>
|
|
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M214.96,-93.56C209.01,-74.96 200.23,-47.49 194.9,-30.8"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="211.55,-94.4 217.93,-102.86 218.22,-92.27 211.55,-94.4"/>
|
|
</a>
|
|
</g>
|
|
<text xml:space="preserve" text-anchor="start" x="213.34" y="-60.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">value</text>
|
|
</g>
|
|
</g>
|
|
</svg>
|
|
</svg>
|
|
|
|
<style type='text/css'>
|
|
<![CDATA[
|
|
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
|
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
|
]]>
|
|
</style>
|
|
<script type="application/ecmascript"><![CDATA[
|
|
document.addEventListener('DOMContentLoaded', (event) => {
|
|
highlightEdges();
|
|
highlightAdjacentNodes();
|
|
});
|
|
]]></script>
|
|
</svg>
|