Documentation for 8b1eab204b

This commit is contained in:
realstealthninja
2024-11-04 12:43:05 +00:00
parent 4fb6e622e9
commit a7bccf7d01
6732 changed files with 153919 additions and 365711 deletions

View File

@@ -1,3 +1,4 @@
<!-- HTML header for doxygen 1.12.0-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
@@ -5,10 +6,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: graph::topological_sort::Graph Class Reference</title>
<title>TheAlgorithms/C++: graph::topological_sort::Graph Class Reference</title>
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
</script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../navtreedata.js"></script>
@@ -18,14 +24,24 @@
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
<script type="text/javascript">
window.MathJax = {
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
loader: {
load: ['[tex]/ams']
},
tex: {
macros: {},
packages: ['base','configmacros','ams']
}
};
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
@@ -33,10 +49,11 @@ MathJax.Hub.Config({
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
<div id="projectname">TheAlgorithms/C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
<div id="projectbrief">All the algorithms implemented in C++</div>
</td>
</tr>
</tbody>
@@ -128,7 +145,7 @@ Public Member Functions</h2></td></tr>
<tr class="memitem:a57036210706a45b9363563252393a345" id="r_a57036210706a45b9363563252393a345"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a57036210706a45b9363563252393a345">addEdge</a> (int u, int v)</td></tr>
<tr class="memdesc:a57036210706a45b9363563252393a345"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that adds an edge between two nodes or vertices of graph. <br /></td></tr>
<tr class="separator:a57036210706a45b9363563252393a345"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e84b175ef768ff58eaeededd43e8368" id="r_a5e84b175ef768ff58eaeededd43e8368"><td class="memItemLeft" align="right" valign="top">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5e84b175ef768ff58eaeededd43e8368">getAdjacencyList</a> () const</td></tr>
<tr class="memitem:a5e84b175ef768ff58eaeededd43e8368" id="r_a5e84b175ef768ff58eaeededd43e8368"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::vector&lt; int &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5e84b175ef768ff58eaeededd43e8368">getAdjacencyList</a> () const</td></tr>
<tr class="memdesc:a5e84b175ef768ff58eaeededd43e8368"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the adjacency list of the graph. <br /></td></tr>
<tr class="separator:a5e84b175ef768ff58eaeededd43e8368"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad22018e4f4f80aecb0538044bb83d096" id="r_ad22018e4f4f80aecb0538044bb83d096"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad22018e4f4f80aecb0538044bb83d096">getNumNodes</a> () const</td></tr>
@@ -137,15 +154,15 @@ Public Member Functions</h2></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ad397d1dfbb62c7b612baeebe8cc83057" id="r_ad397d1dfbb62c7b612baeebe8cc83057"><td class="memItemLeft" align="right" valign="top"><a id="ad397d1dfbb62c7b612baeebe8cc83057" name="ad397d1dfbb62c7b612baeebe8cc83057"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr>
<tr class="memitem:ad397d1dfbb62c7b612baeebe8cc83057" id="r_ad397d1dfbb62c7b612baeebe8cc83057"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad397d1dfbb62c7b612baeebe8cc83057">n</a></td></tr>
<tr class="separator:ad397d1dfbb62c7b612baeebe8cc83057"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab54b59df8e4d8f2bd1eed7c478ac6756" id="r_ab54b59df8e4d8f2bd1eed7c478ac6756"><td class="memItemLeft" align="right" valign="top"><a id="ab54b59df8e4d8f2bd1eed7c478ac6756" name="ab54b59df8e4d8f2bd1eed7c478ac6756"></a>
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>adj</b></td></tr>
<tr class="memitem:ab54b59df8e4d8f2bd1eed7c478ac6756" id="r_ab54b59df8e4d8f2bd1eed7c478ac6756"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::vector&lt; int &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab54b59df8e4d8f2bd1eed7c478ac6756">adj</a></td></tr>
<tr class="separator:ab54b59df8e4d8f2bd1eed7c478ac6756"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class that represents a directed graph and provides methods for manipulating the graph. </p>
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00038">38</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a75a849f80a66304e7da39b3ccd6129d6" name="a75a849f80a66304e7da39b3ccd6129d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75a849f80a66304e7da39b3ccd6129d6">&#9670;&#160;</a></span>Graph()</h2>
@@ -177,6 +194,8 @@ int&#160;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00048">48</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 48</span>: n(nodes), adj(nodes) {}</div>
</div><!-- fragment -->
</div>
@@ -217,14 +236,10 @@ int&#160;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 55</span>{ adj[u].<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">push_back</a>(v); }</div>
<div class="ttc" id="apush_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">std::vector::push_back</a></div><div class="ttdeci">T push_back(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d5/dec/classgraph_1_1topological__sort_1_1_graph_a57036210706a45b9363563252393a345_cgraph.svg" width="366" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00055">55</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 55</span>{ adj[u].push_back(v); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a5e84b175ef768ff58eaeededd43e8368" name="a5e84b175ef768ff58eaeededd43e8368"></a>
@@ -237,7 +252,7 @@ Here is the call graph for this function:</div>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt; &gt; &amp; graph::topological_sort::Graph::getAdjacencyList </td>
<td class="memname">const std::vector&lt; std::vector&lt; int &gt; &gt; &amp; graph::topological_sort::Graph::getAdjacencyList </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td> const</td>
@@ -252,6 +267,8 @@ Here is the call graph for this function:</div>
<p>Get the adjacency list of the graph. </p>
<dl class="section return"><dt>Returns</dt><dd>A reference to the adjacency list </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00061">61</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 61</span> {</div>
<div class="line"><span class="lineno"> 62</span> <span class="keywordflow">return</span> adj;</div>
<div class="line"><span class="lineno"> 63</span> }</div>
@@ -283,12 +300,63 @@ Here is the call graph for this function:</div>
<p>Get the number of nodes in the graph. </p>
<dl class="section return"><dt>Returns</dt><dd>The number of nodes </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00069">69</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 69</span>{ <span class="keywordflow">return</span> n; }</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab54b59df8e4d8f2bd1eed7c478ac6756" name="ab54b59df8e4d8f2bd1eed7c478ac6756"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab54b59df8e4d8f2bd1eed7c478ac6756">&#9670;&#160;</a></span>adj</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;std::vector&lt;int&gt; &gt; graph::topological_sort::Graph::adj</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00041">41</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
</div>
</div>
<a id="ad397d1dfbb62c7b612baeebe8cc83057" name="ad397d1dfbb62c7b612baeebe8cc83057"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad397d1dfbb62c7b612baeebe8cc83057">&#9670;&#160;</a></span>n</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int graph::topological_sort::Graph::n</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html#l00040">40</a> of file <a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>graph/<a class="el" href="../../d8/db9/topological__sort_8cpp.html">topological_sort.cpp</a></li>
<li>graph/<a class="el" href="../../d8/db9/topological__sort_8cpp_source.html">topological_sort.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->

View File

@@ -1,5 +0,0 @@
<map id="graph::topological_sort::Graph::addEdge" name="graph::topological_sort::Graph::addEdge">
<area shape="rect" id="Node000001" title="Function that adds an edge between two nodes or vertices of graph." alt="" coords="5,5,158,46"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="206,13,360,38"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="158,23,190,23,190,28,158,28"/>
</map>

View File

@@ -1 +0,0 @@
1b7f4d729ecbe66b97fdd869ae62df4d

View File

@@ -1,66 +0,0 @@
<?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: graph::topological_sort::Graph::addEdge Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" 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 34.5)">
<title>graph::topological_sort::Graph::addEdge</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Function that adds an edge between two nodes or vertices of graph.">
<polygon fill="#999999" stroke="#666666" points="114.25,-30.5 0,-30.5 0,0 114.25,0 114.25,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">graph::topological</text>
<text text-anchor="middle" x="57.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_sort::Graph::addEdge</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/push_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="266,-24.88 150.25,-24.88 150.25,-5.63 266,-5.63 266,-24.88"/>
<text text-anchor="middle" x="208.12" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M114.46,-15.25C122.41,-15.25 130.66,-15.25 138.81,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.71,-18.75 148.71,-15.25 138.71,-11.75 138.71,-18.75"/>
</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>

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -1,40 +0,0 @@
<?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: graph::topological_sort::Graph::addEdge Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" 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 34.5)">
<title>graph::topological_sort::Graph::addEdge</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Function that adds an edge between two nodes or vertices of graph.">
<polygon fill="#999999" stroke="#666666" points="114.25,-30.5 0,-30.5 0,0 114.25,0 114.25,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">graph::topological</text>
<text text-anchor="middle" x="57.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_sort::Graph::addEdge</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/push_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="266,-24.88 150.25,-24.88 150.25,-5.63 266,-5.63 266,-24.88"/>
<text text-anchor="middle" x="208.12" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M114.46,-15.25C122.41,-15.25 130.66,-15.25 138.81,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.71,-18.75 148.71,-15.25 138.71,-11.75 138.71,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB