mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-11 19:17:21 +08:00
147 lines
6.4 KiB
XML
147 lines
6.4 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.2 (20240928.0832)
|
|
-->
|
|
<!-- Title: tests Pages: 1 -->
|
|
<svg width="367pt" height="119pt"
|
|
viewBox="0.00 0.00 366.50 119.25" 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 115.25)">
|
|
<title>tests</title>
|
|
<!-- Node1 -->
|
|
<g id="Node000001" class="node">
|
|
<title>Node1</title>
|
|
<g id="a_Node000001"><a xlink:title=" ">
|
|
<polygon fill="#999999" stroke="#666666" points="37.75,-74.25 0,-74.25 0,-55 37.75,-55 37.75,-74.25"/>
|
|
<text text-anchor="middle" x="18.88" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2 -->
|
|
<g id="Node000002" class="node">
|
|
<title>Node2</title>
|
|
<g id="a_Node000002"><a xlink:href="../../df/dce/namespacegraph.html#a9125ceb66bfbec3093bba64c2c1e99e2" target="_top" xlink:title="Function that add edge between two nodes or vertices of graph.">
|
|
<polygon fill="white" stroke="#666666" points="197,-111.25 112.75,-111.25 112.75,-92 197,-92 197,-111.25"/>
|
|
<text text-anchor="middle" x="154.88" y="-97.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::addEdge</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node2 -->
|
|
<g id="edge1_Node000001_Node000002" class="edge">
|
|
<title>Node1->Node2</title>
|
|
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
|
<path fill="none" stroke="#63b8ff" d="M38.15,-71.68C48.5,-75.51 61.74,-80.17 73.75,-83.62 82.61,-86.17 92.12,-88.58 101.37,-90.76"/>
|
|
<polygon fill="#63b8ff" stroke="#63b8ff" points="100.46,-94.15 110.99,-92.96 102.02,-87.32 100.46,-94.15"/>
|
|
</a>
|
|
</g>
|
|
</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/io/manip/endl.html#" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="181.62,-74.25 128.12,-74.25 128.12,-55 181.62,-55 181.62,-74.25"/>
|
|
<text text-anchor="middle" x="154.88" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node3 -->
|
|
<g id="edge2_Node000001_Node000003" class="edge">
|
|
<title>Node1->Node3</title>
|
|
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
|
<path fill="none" stroke="#63b8ff" d="M38.23,-64.62C58.27,-64.62 90.93,-64.62 116.44,-64.62"/>
|
|
<polygon fill="#63b8ff" stroke="#63b8ff" points="116.43,-68.13 126.43,-64.63 116.43,-61.13 116.43,-68.13"/>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node4 -->
|
|
<g id="Node000004" class="node">
|
|
<title>Node4</title>
|
|
<g id="a_Node000004"><a xlink:href="../../df/dce/namespacegraph.html#a83ab16e96cec644109a58dfc9329bc2b" target="_top" xlink:title="Function that perfoms depth first search algorithm on graph and calculated the number of connected co...">
|
|
<polygon fill="white" stroke="#666666" points="236,-37.25 73.75,-37.25 73.75,-18 236,-18 236,-37.25"/>
|
|
<text text-anchor="middle" x="154.88" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::getConnectedComponents</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node4 -->
|
|
<g id="edge3_Node000001_Node000004" class="edge">
|
|
<title>Node1->Node4</title>
|
|
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
|
<path fill="none" stroke="#63b8ff" d="M38.15,-57.57C48.5,-53.74 61.74,-49.08 73.75,-45.62 80.31,-43.74 87.23,-41.93 94.13,-40.23"/>
|
|
<polygon fill="#63b8ff" stroke="#63b8ff" points="94.52,-43.73 103.44,-38.01 92.9,-36.92 94.52,-43.73"/>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node5 -->
|
|
<g id="Node000005" class="node">
|
|
<title>Node5</title>
|
|
<g id="a_Node000005"><a xlink:href="../../df/dce/namespacegraph.html#a3ae80bc4c6a79d041b4f3a6589eb7fb8" target="_top" xlink:title="Utility function for depth first seach algorithm this function explores the vertex which is passed in...">
|
|
<polygon fill="white" stroke="#666666" points="354,-56.25 276.5,-56.25 276.5,-37 354,-37 354,-56.25"/>
|
|
<text text-anchor="middle" x="315.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::explore</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node4->Node5 -->
|
|
<g id="edge4_Node000004_Node000005" class="edge">
|
|
<title>Node4->Node5</title>
|
|
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
|
<path fill="none" stroke="#63b8ff" d="M236.45,-37.29C246.23,-38.47 255.98,-39.63 265.11,-40.73"/>
|
|
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.44,-44.17 274.79,-41.89 265.27,-37.22 264.44,-44.17"/>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node6 -->
|
|
<g id="Node000006" class="node">
|
|
<title>Node6</title>
|
|
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="358.5,-19.25 272,-19.25 272,0 358.5,0 358.5,-19.25"/>
|
|
<text text-anchor="middle" x="315.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node4->Node6 -->
|
|
<g id="edge6_Node000004_Node000006" class="edge">
|
|
<title>Node4->Node6</title>
|
|
<g id="a_edge6_Node000004_Node000006"><a xlink:title=" ">
|
|
<path fill="none" stroke="#63b8ff" d="M236.45,-18.47C244.57,-17.54 252.67,-16.62 260.41,-15.74"/>
|
|
<polygon fill="#63b8ff" stroke="#63b8ff" points="260.79,-19.22 270.33,-14.62 260,-12.27 260.79,-19.22"/>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node5->Node5 -->
|
|
<g id="edge5_Node000005_Node000005" class="edge">
|
|
<title>Node5->Node5</title>
|
|
<g id="a_edge5_Node000005_Node000005"><a xlink:title=" ">
|
|
<path fill="none" stroke="#63b8ff" d="M290.14,-56.54C278.69,-65.15 287.06,-74.25 315.25,-74.25 331.11,-74.25 340.69,-71.37 344.01,-67.32"/>
|
|
<polygon fill="#63b8ff" stroke="#63b8ff" points="347.37,-66.32 340.84,-57.97 340.73,-68.57 347.37,-66.32"/>
|
|
</a>
|
|
</g>
|
|
</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>
|