mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-24 22:02:20 +08:00
136 lines
6.3 KiB
XML
136 lines
6.3 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 12.1.0 (20240811.2233)
|
|
-->
|
|
<!-- Title: hash_chain Pages: 1 -->
|
|
<svg width="160pt" height="316pt"
|
|
viewBox="0.00 0.00 160.12 315.75" 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 311.75)">
|
|
<title>hash_chain</title>
|
|
<!-- Node1 -->
|
|
<g id="Node000001" class="node">
|
|
<title>Node1</title>
|
|
<g id="a_Node000001"><a xlink:title="Chain class with a given modulus.">
|
|
<polygon fill="#999999" stroke="#666666" points="94,-19.25 28.5,-19.25 28.5,0 94,0 94,-19.25"/>
|
|
<text text-anchor="middle" x="61.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">hash_chain</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2 -->
|
|
<g id="Node000002" class="node">
|
|
<title>Node2</title>
|
|
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="121.38,-97 1.12,-97 1.12,-66.5 121.38,-66.5 121.38,-97"/>
|
|
<text text-anchor="start" x="9.12" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector< std::shared</text>
|
|
<text text-anchor="middle" x="61.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">_ptr< 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="M61.25,-54.98C61.25,-42.48 61.25,-28.27 61.25,-19.38"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="57.75,-54.71 61.25,-64.71 64.75,-54.71 57.75,-54.71"/>
|
|
</a>
|
|
</g>
|
|
<text text-anchor="middle" x="73.25" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> head</text>
|
|
</g>
|
|
<!-- Node3 -->
|
|
<g id="Node000003" class="node">
|
|
<title>Node3</title>
|
|
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="122.5,-163.5 0,-163.5 0,-144.25 122.5,-144.25 122.5,-163.5"/>
|
|
<text text-anchor="middle" x="61.25" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">std::shared_ptr< Node ></text>
|
|
</a>
|
|
</g>
|
|
</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="M61.25,-132.67C61.25,-121.41 61.25,-107.64 61.25,-97.42"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="57.75,-132.48 61.25,-142.48 64.75,-132.48 57.75,-132.48"/>
|
|
</a>
|
|
</g>
|
|
<text text-anchor="middle" x="82.62" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
|
|
</g>
|
|
<!-- Node4 -->
|
|
<g id="Node000004" class="node">
|
|
<title>Node4</title>
|
|
<g id="a_Node000004"><a xlink:href="../../db/d8b/struct_node.html" target="_top" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="112.38,-230 10.12,-230 10.12,-210.75 112.38,-210.75 112.38,-230"/>
|
|
<text text-anchor="middle" x="61.25" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">Node< ValueType ></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="M61.25,-198.9C61.25,-187.07 61.25,-172.79 61.25,-163.77"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="57.75,-198.89 61.25,-208.89 64.75,-198.89 57.75,-198.89"/>
|
|
</a>
|
|
</g>
|
|
<text text-anchor="middle" x="68.38" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> ptr</text>
|
|
</g>
|
|
<!-- Node4->Node4 -->
|
|
<g id="edge5_Node000004_Node000004" class="edge">
|
|
<title>Node4->Node4</title>
|
|
<g id="a_edge5_Node000004_Node000004"><a xlink:title=" ">
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M123.88,-224.8C127.93,-223.76 130.38,-222.29 130.38,-220.38 130.38,-217.06 123.06,-215.07 112.8,-214.4"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="123.71,-221.29 114.3,-226.14 124.69,-228.22 123.71,-221.29"/>
|
|
</a>
|
|
</g>
|
|
<text text-anchor="middle" x="141.25" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> next</text>
|
|
</g>
|
|
<!-- Node5 -->
|
|
<g id="Node000005" class="node">
|
|
<title>Node5</title>
|
|
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="118,-307.75 4.5,-307.75 4.5,-277.25 118,-277.25 118,-307.75"/>
|
|
<text text-anchor="start" x="12.5" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::shared_ptr< Node</text>
|
|
<text text-anchor="middle" x="61.25" y="-283" font-family="Helvetica,sans-Serif" font-size="10.00">< ValueType > ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node5->Node4 -->
|
|
<g id="edge4_Node000004_Node000005" class="edge">
|
|
<title>Node5->Node4</title>
|
|
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M61.25,-265.73C61.25,-253.23 61.25,-239.02 61.25,-230.13"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="57.75,-265.46 61.25,-275.46 64.75,-265.46 57.75,-265.46"/>
|
|
</a>
|
|
</g>
|
|
<text text-anchor="middle" x="72.12" y="-249.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> next</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>
|