Documentation for 53a6c16730

This commit is contained in:
github-actions
2022-01-16 16:05:19 +00:00
parent 778f1be9e5
commit 2cab28c905
3620 changed files with 52045 additions and 41188 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: data_structures/dsu_union_rank.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -30,8 +30,8 @@ MathJax.Hub.Config({
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
@@ -129,7 +129,8 @@ Functions</h2></td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p ><a href="https://en.wikipedia.org/wiki/Disjoint-set-data_structure" target="_blank">DSU (Disjoint sets)</a> </p>
<p >dsu : It is a very powerful data structure which keeps track of different clusters(sets) of elements, these sets are disjoint(doesnot have a common element). Disjoint sets uses cases : for finding connected components in a graph, used in Kruskal's algorithm for finding <a class="el" href="../../d4/d12/namespace_minimum.html" title="Implementation of Minimum Edit Distance algorithm.">Minimum</a> Spanning tree. Operations that can be performed: 1) UnionSet(i,j): add(element i and j to the set) 2) findSet(i): returns the representative of the set to which i belogngs to. 3) getParents(i): prints the parent of i and so on and so forth. Below is the class-based approach which uses the heuristic of union-ranks. Using union-rank in findSet(i),we are able to get to the representative of i in slightly delayed O(logN) time but it allows us to keep tracks of the parent of i. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/AayushVyasKIIT" target="_blank">AayushVyasKIIT</a> </dd></dl>
<p >dsu : It is a very powerful data structure which keeps track of different clusters(sets) of elements, these sets are disjoint(doesnot have a common
element). Disjoint sets uses cases : for finding connected components in a graph, used in Kruskal's algorithm for finding <a class="el" href="../../d4/d12/namespace_minimum.html" title="Implementation of Minimum Edit Distance algorithm.">Minimum</a> Spanning tree. Operations that can be performed: 1) UnionSet(i,j): add(element i and j to the set) 2) findSet(i): returns the representative of the set to which i belogngs to. 3) getParents(i): prints the parent of i and so on and so forth. Below is the class-based approach which uses the heuristic of union-ranks. Using union-rank in findSet(i),we are able to get to the representative of i in slightly delayed O(logN) time but it allows us to keep tracks of the parent of i. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/AayushVyasKIIT" target="_blank">AayushVyasKIIT</a> </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d3/dae/dsu__path__compression_8cpp.html" title="DSU (Disjoint sets)">dsu_path_compression.cpp</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
@@ -150,18 +151,18 @@ Functions</h2></td></tr>
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> {</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_function" href="../../df/d28/dsu__union__rank_8cpp.html#ae7880ce913f3058a35ff106d5be9e243">test1</a>(); <span class="comment">// run 1st test case</span></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <a class="code hl_function" href="../../df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae">test2</a>(); <span class="comment">// run 2nd test case</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 182</span> {</div>
<div class="line"><span class="lineno"> 183</span> <a class="code hl_function" href="../../df/d28/dsu__union__rank_8cpp.html#ae7880ce913f3058a35ff106d5be9e243">test1</a>(); <span class="comment">// run 1st test case</span></div>
<div class="line"><span class="lineno"> 184</span> <a class="code hl_function" href="../../df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae">test2</a>(); <span class="comment">// run 2nd test case</span></div>
<div class="line"><span class="lineno"> 185</span> </div>
<div class="line"><span class="lineno"> 186</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 187</span>}</div>
<div class="ttc" id="adsu__union__rank_8cpp_html_a45d94ead4cf4e1ff9f87c38bc99f59ae"><div class="ttname"><a href="../../df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae">test2</a></div><div class="ttdeci">static void test2()</div><div class="ttdoc">Self-implementations, 2nd test.</div><div class="ttdef"><b>Definition:</b> dsu_union_rank.cpp:157</div></div>
<div class="ttc" id="adsu__union__rank_8cpp_html_ae7880ce913f3058a35ff106d5be9e243"><div class="ttname"><a href="../../df/d28/dsu__union__rank_8cpp.html#ae7880ce913f3058a35ff106d5be9e243">test1</a></div><div class="ttdeci">static void test1()</div><div class="ttdoc">Self-implementations, 1st test.</div><div class="ttdef"><b>Definition:</b> dsu_union_rank.cpp:133</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="../../df/d28/dsu__union__rank_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="606" height="207"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/d28/dsu__union__rank_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="606" height="230"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -195,26 +196,26 @@ Here is the call graph for this function:</div>
<p >&lt; number of elements</p>
<p >&lt; object of class disjoint sets</p>
<p >&lt; performs union operation on 1 and 2</p>
<div class="fragment"><div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/* checks the parents in the resultant structures */</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> uint64_t n = 10; <span class="comment">///&lt; number of elements</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_class" href="../../dd/d1f/classdsu.html">dsu</a> d(n + 1); <span class="comment">///&lt; object of class disjoint sets</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> d.unionSet(2, 1); <span class="comment">///&lt; performs union operation on 1 and 2</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> d.unionSet(1, 4);</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> d.unionSet(8, 1);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> d.unionSet(3, 5);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> d.unionSet(5, 6);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> d.unionSet(5, 7);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> d.unionSet(9, 10);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> d.unionSet(2, 10);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// keeping track of the changes using parent pointers</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">vector&lt;uint64_t&gt;</a> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a> = {7, 5};</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">for</span> (uint64_t i = 0; i &lt; <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>.size(); i++) {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> assert(d.getParents(7).at(i) ==</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>[i]); <span class="comment">// makes sure algorithm works fine</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">cout</a> &lt;&lt; <span class="stringliteral">&quot;1st test passed!&quot;</span> &lt;&lt; <a class="code hl_define" href="../../d7/d35/matrix__exponentiation_8cpp.html#a600eaf353befc174637855795f12d258">endl</a>;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 133</span> {</div>
<div class="line"><span class="lineno"> 134</span> <span class="comment">/* checks the parents in the resultant structures */</span></div>
<div class="line"><span class="lineno"> 135</span> uint64_t n = 10; <span class="comment">///&lt; number of elements</span></div>
<div class="line"><span class="lineno"> 136</span> <a class="code hl_class" href="../../dd/d1f/classdsu.html">dsu</a> d(n + 1); <span class="comment">///&lt; object of class disjoint sets</span></div>
<div class="line"><span class="lineno"> 137</span> d.unionSet(2, 1); <span class="comment">///&lt; performs union operation on 1 and 2</span></div>
<div class="line"><span class="lineno"> 138</span> d.unionSet(1, 4);</div>
<div class="line"><span class="lineno"> 139</span> d.unionSet(8, 1);</div>
<div class="line"><span class="lineno"> 140</span> d.unionSet(3, 5);</div>
<div class="line"><span class="lineno"> 141</span> d.unionSet(5, 6);</div>
<div class="line"><span class="lineno"> 142</span> d.unionSet(5, 7);</div>
<div class="line"><span class="lineno"> 143</span> d.unionSet(9, 10);</div>
<div class="line"><span class="lineno"> 144</span> d.unionSet(2, 10);</div>
<div class="line"><span class="lineno"> 145</span> <span class="comment">// keeping track of the changes using parent pointers</span></div>
<div class="line"><span class="lineno"> 146</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">vector&lt;uint64_t&gt;</a> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a> = {7, 5};</div>
<div class="line"><span class="lineno"> 147</span> <span class="keywordflow">for</span> (uint64_t i = 0; i &lt; <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>.size(); i++) {</div>
<div class="line"><span class="lineno"> 148</span> assert(d.getParents(7).at(i) ==</div>
<div class="line"><span class="lineno"> 149</span> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>[i]); <span class="comment">// makes sure algorithm works fine</span></div>
<div class="line"><span class="lineno"> 150</span> }</div>
<div class="line"><span class="lineno"> 151</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">cout</a> &lt;&lt; <span class="stringliteral">&quot;1st test passed!&quot;</span> &lt;&lt; <a class="code hl_define" href="../../d7/d35/matrix__exponentiation_8cpp.html#a600eaf353befc174637855795f12d258">endl</a>;</div>
<div class="line"><span class="lineno"> 152</span>}</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="aclassdsu_html"><div class="ttname"><a href="../../dd/d1f/classdsu.html">dsu</a></div><div class="ttdoc">Disjoint sets union data structure, class based representation.</div><div class="ttdef"><b>Definition:</b> dsu_path_compression.cpp:33</div></div>
<div class="ttc" id="amatrix__exponentiation_8cpp_html_a600eaf353befc174637855795f12d258"><div class="ttname"><a href="../../d7/d35/matrix__exponentiation_8cpp.html#a600eaf353befc174637855795f12d258">endl</a></div><div class="ttdeci">#define endl</div><div class="ttdef"><b>Definition:</b> matrix_exponentiation.cpp:36</div></div>
@@ -223,7 +224,7 @@ Here is the call graph for this function:</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="../../df/d28/dsu__union__rank_8cpp_ae7880ce913f3058a35ff106d5be9e243_cgraph.svg" width="507" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/d28/dsu__union__rank_8cpp_ae7880ce913f3058a35ff106d5be9e243_cgraph.svg" width="507" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -259,31 +260,31 @@ Here is the call graph for this function:</div>
<p >performs union operation on 1 and 2</p>
<p >keeping track of the changes using parent pointers</p>
<p >makes sure algorithm works fine</p>
<div class="fragment"><div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> {</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// checks the parents in the resultant structures</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> uint64_t n = 10; <span class="comment">///&lt; number of elements</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <a class="code hl_class" href="../../dd/d1f/classdsu.html">dsu</a> d(n + 1); <span class="comment">///&lt; object of class disjoint sets</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> d.unionSet(2, 1); <span class="comment">/// performs union operation on 1 and 2</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> d.unionSet(1, 4);</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> d.unionSet(8, 1);</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> d.unionSet(3, 5);</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> d.unionSet(5, 6);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> d.unionSet(5, 7);</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> d.unionSet(9, 10);</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> d.unionSet(2, 10);</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span><span class="comment"></span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span><span class="comment"> /// keeping track of the changes using parent pointers</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="comment"></span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">vector&lt;uint64_t&gt;</a> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a> = {2, 1, 10};</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">for</span> (uint64_t i = 0; i &lt; <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>.size(); i++) {</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> assert(d.getParents(2).at(i) ==</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>[i]); <span class="comment">/// makes sure algorithm works fine</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">cout</a> &lt;&lt; <span class="stringliteral">&quot;2nd test passed!&quot;</span> &lt;&lt; <a class="code hl_define" href="../../d7/d35/matrix__exponentiation_8cpp.html#a600eaf353befc174637855795f12d258">endl</a>;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 157</span> {</div>
<div class="line"><span class="lineno"> 158</span> <span class="comment">// checks the parents in the resultant structures</span></div>
<div class="line"><span class="lineno"> 159</span> uint64_t n = 10; <span class="comment">///&lt; number of elements</span></div>
<div class="line"><span class="lineno"> 160</span> <a class="code hl_class" href="../../dd/d1f/classdsu.html">dsu</a> d(n + 1); <span class="comment">///&lt; object of class disjoint sets</span></div>
<div class="line"><span class="lineno"> 161</span> d.unionSet(2, 1); <span class="comment">/// performs union operation on 1 and 2</span></div>
<div class="line"><span class="lineno"> 162</span> d.unionSet(1, 4);</div>
<div class="line"><span class="lineno"> 163</span> d.unionSet(8, 1);</div>
<div class="line"><span class="lineno"> 164</span> d.unionSet(3, 5);</div>
<div class="line"><span class="lineno"> 165</span> d.unionSet(5, 6);</div>
<div class="line"><span class="lineno"> 166</span> d.unionSet(5, 7);</div>
<div class="line"><span class="lineno"> 167</span> d.unionSet(9, 10);</div>
<div class="line"><span class="lineno"> 168</span> d.unionSet(2, 10);</div>
<div class="line"><span class="lineno"> 169</span><span class="comment"></span> </div>
<div class="line"><span class="lineno"> 170</span><span class="comment"> /// keeping track of the changes using parent pointers</span></div>
<div class="line"><span class="lineno"> 171</span><span class="comment"></span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">vector&lt;uint64_t&gt;</a> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a> = {2, 1, 10};</div>
<div class="line"><span class="lineno"> 172</span> <span class="keywordflow">for</span> (uint64_t i = 0; i &lt; <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>.size(); i++) {</div>
<div class="line"><span class="lineno"> 173</span> assert(d.getParents(2).at(i) ==</div>
<div class="line"><span class="lineno"> 174</span> <a class="code hl_function" href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa">ans</a>[i]); <span class="comment">/// makes sure algorithm works fine</span></div>
<div class="line"><span class="lineno"> 175</span> }</div>
<div class="line"><span class="lineno"> 176</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">cout</a> &lt;&lt; <span class="stringliteral">&quot;2nd test passed!&quot;</span> &lt;&lt; <a class="code hl_define" href="../../d7/d35/matrix__exponentiation_8cpp.html#a600eaf353befc174637855795f12d258">endl</a>;</div>
<div class="line"><span class="lineno"> 177</span>}</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="../../df/d28/dsu__union__rank_8cpp_a45d94ead4cf4e1ff9f87c38bc99f59ae_cgraph.svg" width="507" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/d28/dsu__union__rank_8cpp_a45d94ead4cf4e1ff9f87c38bc99f59ae_cgraph.svg" width="507" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -295,7 +296,7 @@ Here is the call graph for this function:</div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html">data_structures</a></li><li class="navelem"><a class="el" href="../../df/d28/dsu__union__rank_8cpp.html">dsu_union_rank.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>

View File

@@ -1,9 +1,10 @@
<map id="test2" name="test2">
<area shape="rect" id="node1" title="Self&#45;implementations, 2nd test." alt="" coords="5,56,56,83"/>
<area shape="rect" id="node2" href="$d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" title=" " alt="" coords="293,5,335,32"/>
<area shape="rect" id="node3" href="$dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" title="Method to print all the parents of i, or the path from i to representative." alt="" coords="104,56,219,83"/>
<area shape="rect" id="node4" href="$dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com..." alt="" coords="110,107,213,133"/>
<area shape="rect" id="node5" href="$dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" title="Method to find the representative of the set to which i belongs to, T(n) = O(1)" alt="" coords="409,81,501,108"/>
<area shape="rect" id="node6" href="$dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" title="A utility function which check whether i and j belongs to same set or not." alt="" coords="267,107,361,133"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/swap.html#" title=" " alt="" coords="275,157,353,184"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/at#" title=" " alt="" coords="110,31,213,57"/>
<area shape="rect" id="node4" href="$dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" title="Method to print all the parents of i, or the path from i to representative." alt="" coords="104,81,219,108"/>
<area shape="rect" id="node5" href="$dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com..." alt="" coords="110,132,213,159"/>
<area shape="rect" id="node6" href="$dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" title="Method to find the representative of the set to which i belongs to, T(n) = O(1)" alt="" coords="409,107,501,133"/>
<area shape="rect" id="node7" href="$dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" title="A utility function which check whether i and j belongs to same set or not." alt="" coords="267,132,361,159"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/swap#" title=" " alt="" coords="275,183,353,209"/>
</map>

View File

@@ -1 +1 @@
413d5a9409029480fc4dd4ab917bdc62
f85736719e3ae4a6bade539aa923067d

View File

@@ -4,17 +4,17 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: test2 Pages: 1 -->
<svg width="380pt" height="142pt"
viewBox="0.00 0.00 380.00 142.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 138)">
<svg width="380pt" height="161pt"
viewBox="0.00 0.00 380.00 161.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 157)">
<title>test2</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 376,-138 376,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-157 376,-157 376,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Self&#45;implementations, 2nd test.">
<polygon fill="#bfbfbf" stroke="black" points="0,-76.5 0,-95.5 38,-95.5 38,-76.5 0,-76.5"/>
<text text-anchor="middle" x="19" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-95.5 0,-114.5 38,-114.5 38,-95.5 0,-95.5"/>
<text text-anchor="middle" x="19" y="-102.5" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
</a>
</g>
</g>
@@ -22,107 +22,122 @@
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="215.5,-114.5 215.5,-133.5 247.5,-133.5 247.5,-114.5 215.5,-114.5"/>
<text text-anchor="middle" x="231.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">ans</text>
<polygon fill="white" stroke="black" points="215.5,-133.5 215.5,-152.5 247.5,-152.5 247.5,-133.5 215.5,-133.5"/>
<text text-anchor="middle" x="231.5" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">ans</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M38.2,-93.52C48.53,-97.5 61.81,-102.15 74,-105 119.54,-115.64 174,-120.54 205.19,-122.62"/>
<polygon fill="midnightblue" stroke="midnightblue" points="205,-126.12 215.2,-123.25 205.44,-119.13 205,-126.12"/>
<path fill="none" stroke="midnightblue" d="M29.71,-114.69C39.79,-124 56.51,-137.46 74,-143 118.49,-157.08 173.72,-152.27 205.26,-147.58"/>
<polygon fill="midnightblue" stroke="midnightblue" points="206.05,-150.99 215.37,-145.95 204.94,-144.08 206.05,-150.99"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" target="_top" xlink:title="Method to print all the parents of i, or the path from i to representative.">
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 160,-95.5 160,-76.5 74,-76.5"/>
<text text-anchor="middle" x="117" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::getParents</text>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/at#" xlink:title=" ">
<polygon fill="white" stroke="black" points="78.5,-114.5 78.5,-133.5 155.5,-133.5 155.5,-114.5 78.5,-114.5"/>
<text text-anchor="middle" x="117" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::at</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M38.06,-86C45.48,-86 54.48,-86 63.7,-86"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.73,-89.5 73.73,-86 63.73,-82.5 63.73,-89.5"/>
<path fill="none" stroke="midnightblue" d="M38.06,-108.57C46.71,-110.29 57.52,-112.42 68.3,-114.56"/>
<polygon fill="midnightblue" stroke="midnightblue" points="67.66,-118 78.14,-116.51 69.01,-111.13 67.66,-118"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" target="_top" xlink:title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com...">
<g id="a_node4"><a xlink:href="../../dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" target="_top" xlink:title="Method to print all the parents of i, or the path from i to representative.">
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 160,-95.5 160,-76.5 74,-76.5"/>
<text text-anchor="middle" x="117" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::getParents</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M38.06,-101.43C45.48,-99.96 54.48,-98.18 63.7,-96.35"/>
<polygon fill="midnightblue" stroke="midnightblue" points="64.6,-99.74 73.73,-94.37 63.24,-92.87 64.6,-99.74"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" target="_top" xlink:title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com...">
<polygon fill="white" stroke="black" points="78.5,-38.5 78.5,-57.5 155.5,-57.5 155.5,-38.5 78.5,-38.5"/>
<text text-anchor="middle" x="117" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::unionSet</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M32.43,-95.24C43.1,-87.11 59.07,-75.53 74,-67 77.01,-65.28 80.2,-63.6 83.43,-61.99"/>
<polygon fill="midnightblue" stroke="midnightblue" points="84.97,-65.14 92.5,-57.69 81.97,-58.81 84.97,-65.14"/>
</g>
<!-- Node4&#45;&gt;Node2 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M38.06,-78.85C50.53,-73.91 67.5,-67.2 82.42,-61.29"/>
<polygon fill="midnightblue" stroke="midnightblue" points="83.85,-64.49 91.86,-57.56 81.27,-57.98 83.85,-64.49"/>
<title>Node4&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M139.93,-95.58C146.44,-98.51 153.54,-101.8 160,-105 175.54,-112.69 192.68,-121.91 206.16,-129.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="204.81,-132.6 215.26,-134.39 208.21,-126.48 204.81,-132.6"/>
</g>
<!-- Node3&#45;&gt;Node2 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M146.39,-95.59C164.67,-101.76 188.21,-109.71 205.73,-115.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="204.68,-118.97 215.27,-118.86 206.92,-112.34 204.68,-118.97"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" target="_top" xlink:title="Method to find the representative of the set to which i belongs to, T(n) = O(1)">
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" target="_top" xlink:title="Method to find the representative of the set to which i belongs to, T(n) = O(1)">
<polygon fill="white" stroke="black" points="303,-57.5 303,-76.5 372,-76.5 372,-57.5 303,-57.5"/>
<text text-anchor="middle" x="337.5" y="-64.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::findSet</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node5</title>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M149.56,-57.51C163.63,-61.27 180.5,-65.14 196,-67 228.21,-70.87 264.88,-70.72 292.68,-69.68"/>
<polygon fill="midnightblue" stroke="midnightblue" points="293.03,-73.17 302.87,-69.24 292.73,-66.17 293.03,-73.17"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" target="_top" xlink:title="A utility function which check whether i and j belongs to same set or not.">
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" target="_top" xlink:title="A utility function which check whether i and j belongs to same set or not.">
<polygon fill="white" stroke="black" points="196,-38.5 196,-57.5 267,-57.5 267,-38.5 196,-38.5"/>
<text text-anchor="middle" x="231.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::isSame</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge7" class="edge">
<title>Node4&#45;&gt;Node6</title>
<!-- Node5&#45;&gt;Node7 -->
<g id="edge8" class="edge">
<title>Node5&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M155.77,-48C165.34,-48 175.72,-48 185.6,-48"/>
<polygon fill="midnightblue" stroke="midnightblue" points="185.67,-51.5 195.67,-48 185.67,-44.5 185.67,-51.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/swap.html#" xlink:title=" ">
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/swap#" xlink:title=" ">
<polygon fill="white" stroke="black" points="202,-0.5 202,-19.5 261,-19.5 261,-0.5 202,-0.5"/>
<text text-anchor="middle" x="231.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::swap</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node4&#45;&gt;Node7</title>
<!-- Node5&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node5&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M146.39,-38.41C160.38,-33.69 177.44,-27.92 192.54,-22.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="193.77,-26.1 202.12,-19.59 191.53,-19.47 193.77,-26.1"/>
</g>
<!-- Node5&#45;&gt;Node5 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node5</title>
<!-- Node6&#45;&gt;Node6 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M321.16,-76.76C313.21,-85.57 318.66,-95 337.5,-95 349.27,-95 355.82,-91.31 357.13,-86.4"/>
<polygon fill="midnightblue" stroke="midnightblue" points="360.38,-85.09 353.84,-76.76 353.76,-87.35 360.38,-85.09"/>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node5</title>
<!-- Node7&#45;&gt;Node6 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M267.13,-54.33C275.37,-55.83 284.27,-57.46 292.85,-59.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="292.26,-62.48 302.73,-60.83 293.52,-55.59 292.26,-62.48"/>
</g>

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@@ -1,11 +1,12 @@
<map id="main" name="main">
<area shape="rect" id="node1" title="Main function." alt="" coords="5,49,56,75"/>
<area shape="rect" id="node2" href="$df/d28/dsu__union__rank_8cpp.html#ae7880ce913f3058a35ff106d5be9e243" title="Self&#45;implementations, 1st test." alt="" coords="104,74,155,101"/>
<area shape="rect" id="node9" href="$df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae" title="Self&#45;implementations, 2nd test." alt="" coords="104,23,155,50"/>
<area shape="rect" id="node3" href="$d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" title=" " alt="" coords="391,23,434,50"/>
<area shape="rect" id="node4" href="$dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" title="Method to print all the parents of i, or the path from i to representative." alt="" coords="203,23,317,50"/>
<area shape="rect" id="node5" href="$dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com..." alt="" coords="209,125,311,151"/>
<area shape="rect" id="node6" href="$dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" title="Method to find the representative of the set to which i belongs to, T(n) = O(1)" alt="" coords="508,99,600,126"/>
<area shape="rect" id="node7" href="$dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" title="A utility function which check whether i and j belongs to same set or not." alt="" coords="365,125,460,151"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/swap.html#" title=" " alt="" coords="373,175,452,202"/>
<area shape="rect" id="node1" title="Main function." alt="" coords="5,80,56,107"/>
<area shape="rect" id="node2" href="$df/d28/dsu__union__rank_8cpp.html#ae7880ce913f3058a35ff106d5be9e243" title="Self&#45;implementations, 1st test." alt="" coords="104,55,155,82"/>
<area shape="rect" id="node10" href="$df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae" title="Self&#45;implementations, 2nd test." alt="" coords="104,106,155,132"/>
<area shape="rect" id="node3" href="$d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" title=" " alt="" coords="391,80,434,107"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/at#" title=" " alt="" coords="209,30,311,56"/>
<area shape="rect" id="node5" href="$dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" title="Method to print all the parents of i, or the path from i to representative." alt="" coords="203,80,317,107"/>
<area shape="rect" id="node6" href="$dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com..." alt="" coords="209,182,311,208"/>
<area shape="rect" id="node7" href="$dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" title="Method to find the representative of the set to which i belongs to, T(n) = O(1)" alt="" coords="508,182,600,208"/>
<area shape="rect" id="node8" href="$dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" title="A utility function which check whether i and j belongs to same set or not." alt="" coords="365,131,460,158"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/swap#" title=" " alt="" coords="373,182,452,208"/>
</map>

View File

@@ -1 +1 @@
0a7e08d906379ef71155e6daf0c91734
e3aee52fd339986d2cd0b76907479406

View File

@@ -4,17 +4,17 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: main Pages: 1 -->
<svg width="454pt" height="155pt"
viewBox="0.00 0.00 454.00 155.47" 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 151.47)">
<svg width="454pt" height="172pt"
viewBox="0.00 0.00 454.00 172.22" 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 168.22)">
<title>main</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-151.47 450,-151.47 450,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-168.22 450,-168.22 450,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#bfbfbf" stroke="black" points="0,-95.5 0,-114.5 38,-114.5 38,-95.5 0,-95.5"/>
<text text-anchor="middle" x="19" y="-102.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-88.54 0,-107.54 38,-107.54 38,-88.54 0,-88.54"/>
<text text-anchor="middle" x="19" y="-95.54" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
@@ -22,157 +22,178 @@
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../df/d28/dsu__union__rank_8cpp.html#ae7880ce913f3058a35ff106d5be9e243" target="_top" xlink:title="Self&#45;implementations, 1st test.">
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 112,-95.5 112,-76.5 74,-76.5"/>
<text text-anchor="middle" x="93" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
<polygon fill="white" stroke="black" points="74,-107.54 74,-126.54 112,-126.54 112,-107.54 74,-107.54"/>
<text text-anchor="middle" x="93" y="-114.54" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M38.17,-100.21C45.95,-98.15 55.23,-95.7 63.87,-93.42"/>
<polygon fill="midnightblue" stroke="midnightblue" points="64.81,-96.79 73.59,-90.86 63.02,-90.03 64.81,-96.79"/>
<path fill="none" stroke="midnightblue" d="M38.17,-102.83C45.95,-104.89 55.23,-107.34 63.87,-109.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.02,-113.01 73.59,-112.18 64.81,-106.24 63.02,-113.01"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae" target="_top" xlink:title="Self&#45;implementations, 2nd test.">
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 112,-133.5 112,-114.5 74,-114.5"/>
<text text-anchor="middle" x="93" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../df/d28/dsu__union__rank_8cpp.html#a45d94ead4cf4e1ff9f87c38bc99f59ae" target="_top" xlink:title="Self&#45;implementations, 2nd test.">
<polygon fill="white" stroke="black" points="74,-69.54 74,-88.54 112,-88.54 112,-69.54 74,-69.54"/>
<text text-anchor="middle" x="93" y="-76.54" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node9 -->
<g id="edge11" class="edge">
<title>Node1&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M38.17,-109.79C45.95,-111.85 55.23,-114.3 63.87,-116.58"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.02,-119.97 73.59,-119.14 64.81,-113.21 63.02,-119.97"/>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge12" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M38.17,-93.24C45.95,-91.19 55.23,-88.74 63.87,-86.46"/>
<polygon fill="midnightblue" stroke="midnightblue" points="64.81,-89.83 73.59,-83.9 63.02,-83.07 64.81,-89.83"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="289.5,-114.5 289.5,-133.5 321.5,-133.5 321.5,-114.5 289.5,-114.5"/>
<text text-anchor="middle" x="305.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">ans</text>
<polygon fill="white" stroke="black" points="289.5,-88.54 289.5,-107.54 321.5,-107.54 321.5,-88.54 289.5,-88.54"/>
<text text-anchor="middle" x="305.5" y="-95.54" font-family="Helvetica,sans-Serif" font-size="10.00">ans</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M112.25,-87.72C139.09,-90.42 190.72,-96.27 234,-105 249.2,-108.07 265.97,-112.54 279.33,-116.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="278.65,-119.82 289.23,-119.28 280.62,-113.1 278.65,-119.82"/>
<path fill="none" stroke="midnightblue" d="M103.71,-126.73C113.79,-136.04 130.51,-149.5 148,-155.04 184.44,-166.58 197.97,-167.78 234,-155.04 256.33,-147.14 276.76,-128.84 289.82,-115.09"/>
<polygon fill="midnightblue" stroke="midnightblue" points="292.46,-117.38 296.61,-107.63 287.29,-112.67 292.46,-117.38"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" target="_top" xlink:title="Method to print all the parents of i, or the path from i to representative.">
<polygon fill="white" stroke="black" points="148,-114.5 148,-133.5 234,-133.5 234,-114.5 148,-114.5"/>
<text text-anchor="middle" x="191" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::getParents</text>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/at#" xlink:title=" ">
<polygon fill="white" stroke="black" points="152.5,-126.54 152.5,-145.54 229.5,-145.54 229.5,-126.54 152.5,-126.54"/>
<text text-anchor="middle" x="191" y="-133.54" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::at</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M112.06,-93.15C124.53,-98.09 141.5,-104.8 156.42,-110.71"/>
<polygon fill="midnightblue" stroke="midnightblue" points="155.27,-114.02 165.86,-114.44 157.85,-107.51 155.27,-114.02"/>
<path fill="none" stroke="midnightblue" d="M112.06,-120.61C120.71,-122.32 131.52,-124.46 142.3,-126.6"/>
<polygon fill="midnightblue" stroke="midnightblue" points="141.66,-130.04 152.14,-128.55 143.01,-123.17 141.66,-130.04"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" target="_top" xlink:title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com...">
<polygon fill="white" stroke="black" points="152.5,-38.5 152.5,-57.5 229.5,-57.5 229.5,-38.5 152.5,-38.5"/>
<text text-anchor="middle" x="191" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::unionSet</text>
<g id="a_node5"><a xlink:href="../../dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" target="_top" xlink:title="Method to print all the parents of i, or the path from i to representative.">
<polygon fill="white" stroke="black" points="148,-88.54 148,-107.54 234,-107.54 234,-88.54 148,-88.54"/>
<text text-anchor="middle" x="191" y="-95.54" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::getParents</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M112.06,-78.85C124.53,-73.91 141.5,-67.2 156.42,-61.29"/>
<polygon fill="midnightblue" stroke="midnightblue" points="157.85,-64.49 165.86,-57.56 155.27,-57.98 157.85,-64.49"/>
</g>
<!-- Node4&#45;&gt;Node3 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M234.21,-124C249.31,-124 265.85,-124 279.09,-124"/>
<polygon fill="midnightblue" stroke="midnightblue" points="279.34,-127.5 289.34,-124 279.34,-120.5 279.34,-127.5"/>
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M112.06,-113.47C119.48,-112 128.48,-110.21 137.7,-108.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="138.6,-111.78 147.73,-106.41 137.24,-104.91 138.6,-111.78"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" target="_top" xlink:title="Method to find the representative of the set to which i belongs to, T(n) = O(1)">
<polygon fill="white" stroke="black" points="377,-57.5 377,-76.5 446,-76.5 446,-57.5 377,-57.5"/>
<text text-anchor="middle" x="411.5" y="-64.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::findSet</text>
<g id="a_node6"><a xlink:href="../../dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" target="_top" xlink:title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com...">
<polygon fill="white" stroke="black" points="152.5,-12.54 152.5,-31.54 229.5,-31.54 229.5,-12.54 152.5,-12.54"/>
<text text-anchor="middle" x="191" y="-19.54" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::unionSet</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<!-- Node2&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M223.56,-57.51C237.63,-61.27 254.5,-65.14 270,-67 302.21,-70.87 338.88,-70.72 366.68,-69.68"/>
<polygon fill="midnightblue" stroke="midnightblue" points="367.03,-73.17 376.87,-69.24 366.73,-66.17 367.03,-73.17"/>
<title>Node2&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M103.91,-107.23C120.24,-91.08 152.97,-58.69 173.03,-38.83"/>
<polygon fill="midnightblue" stroke="midnightblue" points="175.64,-41.18 180.28,-31.65 170.71,-36.2 175.64,-41.18"/>
</g>
<!-- Node5&#45;&gt;Node3 -->
<g id="edge5" class="edge">
<title>Node5&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M234.21,-98.04C249.31,-98.04 265.85,-98.04 279.09,-98.04"/>
<polygon fill="midnightblue" stroke="midnightblue" points="279.34,-101.54 289.34,-98.04 279.34,-94.54 279.34,-101.54"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" target="_top" xlink:title="A utility function which check whether i and j belongs to same set or not.">
<polygon fill="white" stroke="black" points="270,-38.5 270,-57.5 341,-57.5 341,-38.5 270,-38.5"/>
<text text-anchor="middle" x="305.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::isSame</text>
<g id="a_node7"><a xlink:href="../../dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" target="_top" xlink:title="Method to find the representative of the set to which i belongs to, T(n) = O(1)">
<polygon fill="white" stroke="black" points="377,-12.54 377,-31.54 446,-31.54 446,-12.54 377,-12.54"/>
<text text-anchor="middle" x="411.5" y="-19.54" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::findSet</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node7 -->
<g id="edge8" class="edge">
<title>Node5&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M229.77,-48C239.34,-48 249.72,-48 259.6,-48"/>
<polygon fill="midnightblue" stroke="midnightblue" points="259.67,-51.5 269.67,-48 259.67,-44.5 259.67,-51.5"/>
<!-- Node6&#45;&gt;Node7 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M223.56,-12.53C237.63,-8.77 254.5,-4.9 270,-3.04 301.33,0.72 309.72,1.16 341,-3.04 351.41,-4.44 362.48,-6.96 372.64,-9.73"/>
<polygon fill="midnightblue" stroke="midnightblue" points="371.87,-13.15 382.45,-12.54 373.8,-6.42 371.87,-13.15"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/swap.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="276,-0.5 276,-19.5 335,-19.5 335,-0.5 276,-0.5"/>
<text text-anchor="middle" x="305.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::swap</text>
<g id="a_node8"><a xlink:href="../../dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" target="_top" xlink:title="A utility function which check whether i and j belongs to same set or not.">
<polygon fill="white" stroke="black" points="270,-50.54 270,-69.54 341,-69.54 341,-50.54 270,-50.54"/>
<text text-anchor="middle" x="305.5" y="-57.54" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::isSame</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node5&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M220.39,-38.41C234.38,-33.69 251.44,-27.92 266.54,-22.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="267.77,-26.1 276.12,-19.59 265.53,-19.47 267.77,-26.1"/>
</g>
<!-- Node6&#45;&gt;Node6 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M395.16,-76.76C387.21,-85.57 392.66,-95 411.5,-95 423.27,-95 429.82,-91.31 431.13,-86.4"/>
<polygon fill="midnightblue" stroke="midnightblue" points="434.38,-85.09 427.84,-76.76 427.76,-87.35 434.38,-85.09"/>
</g>
<!-- Node7&#45;&gt;Node6 -->
<!-- Node6&#45;&gt;Node8 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M341.13,-54.33C349.37,-55.83 358.27,-57.46 366.85,-59.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="366.26,-62.48 376.73,-60.83 367.52,-55.59 366.26,-62.48"/>
<title>Node6&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M220.39,-31.63C234.38,-36.35 251.44,-42.12 266.54,-47.22"/>
<polygon fill="midnightblue" stroke="midnightblue" points="265.53,-50.57 276.12,-50.45 267.77,-43.94 265.53,-50.57"/>
</g>
<!-- Node9&#45;&gt;Node3 -->
<g id="edge12" class="edge">
<title>Node9&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M112.08,-132.09C122.38,-136.26 135.66,-140.89 148,-143 185.68,-149.43 196.11,-148.02 234,-143 249.37,-140.97 266.14,-136.54 279.47,-132.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="280.86,-135.7 289.33,-129.33 278.74,-129.03 280.86,-135.7"/>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/swap#" xlink:title=" ">
<polygon fill="white" stroke="black" points="276,-12.54 276,-31.54 335,-31.54 335,-12.54 276,-12.54"/>
<text text-anchor="middle" x="305.5" y="-19.54" font-family="Helvetica,sans-Serif" font-size="10.00">std::swap</text>
</a>
</g>
<!-- Node9&#45;&gt;Node4 -->
</g>
<!-- Node6&#45;&gt;Node9 -->
<g id="edge11" class="edge">
<title>Node6&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M229.77,-22.04C241.31,-22.04 254.01,-22.04 265.61,-22.04"/>
<polygon fill="midnightblue" stroke="midnightblue" points="265.9,-25.54 275.9,-22.04 265.9,-18.54 265.9,-25.54"/>
</g>
<!-- Node7&#45;&gt;Node7 -->
<g id="edge8" class="edge">
<title>Node7&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M395.16,-31.8C387.21,-40.6 392.66,-50.04 411.5,-50.04 423.27,-50.04 429.82,-46.35 431.13,-41.44"/>
<polygon fill="midnightblue" stroke="midnightblue" points="434.38,-40.13 427.84,-31.8 427.76,-42.39 434.38,-40.13"/>
</g>
<!-- Node8&#45;&gt;Node7 -->
<g id="edge10" class="edge">
<title>Node8&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M332.74,-50.45C345.43,-45.81 360.85,-40.18 374.61,-35.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="376.07,-38.34 384.26,-31.63 373.67,-31.77 376.07,-38.34"/>
</g>
<!-- Node10&#45;&gt;Node3 -->
<g id="edge13" class="edge">
<title>Node9&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M112.06,-124C119.48,-124 128.48,-124 137.7,-124"/>
<polygon fill="midnightblue" stroke="midnightblue" points="137.73,-127.5 147.73,-124 137.73,-120.5 137.73,-127.5"/>
<title>Node10&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M112.22,-77.52C139.03,-75.63 190.63,-73.3 234,-79.04 249.37,-81.07 266.14,-85.5 279.47,-89.57"/>
<polygon fill="midnightblue" stroke="midnightblue" points="278.74,-93.01 289.33,-92.7 280.86,-86.34 278.74,-93.01"/>
</g>
<!-- Node9&#45;&gt;Node5 -->
<!-- Node10&#45;&gt;Node4 -->
<g id="edge14" class="edge">
<title>Node9&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M106.16,-114.37C122.24,-101.64 150.81,-79.03 170.07,-63.78"/>
<polygon fill="midnightblue" stroke="midnightblue" points="172.27,-66.5 177.94,-57.55 167.93,-61.01 172.27,-66.5"/>
<title>Node10&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M106.43,-88.8C117.1,-96.93 133.07,-108.51 148,-117.04 151.01,-118.76 154.2,-120.44 157.43,-122.05"/>
<polygon fill="midnightblue" stroke="midnightblue" points="155.97,-125.23 166.5,-126.35 158.97,-118.9 155.97,-125.23"/>
</g>
<!-- Node10&#45;&gt;Node5 -->
<g id="edge15" class="edge">
<title>Node10&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M112.06,-82.61C119.48,-84.08 128.48,-85.86 137.7,-87.69"/>
<polygon fill="midnightblue" stroke="midnightblue" points="137.24,-91.16 147.73,-89.67 138.6,-84.3 137.24,-91.16"/>
</g>
<!-- Node10&#45;&gt;Node6 -->
<g id="edge16" class="edge">
<title>Node10&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M109.52,-69.39C120.28,-62.74 134.95,-53.75 148,-46.04 153.06,-43.05 158.49,-39.9 163.72,-36.9"/>
<polygon fill="midnightblue" stroke="midnightblue" points="165.82,-39.73 172.77,-31.73 162.35,-33.65 165.82,-39.73"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,9 +1,10 @@
<map id="test1" name="test1">
<area shape="rect" id="node1" title="Self&#45;implementations, 1st test." alt="" coords="5,56,56,83"/>
<area shape="rect" id="node2" href="$d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" title=" " alt="" coords="293,5,335,32"/>
<area shape="rect" id="node3" href="$dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" title="Method to print all the parents of i, or the path from i to representative." alt="" coords="104,56,219,83"/>
<area shape="rect" id="node4" href="$dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com..." alt="" coords="110,107,213,133"/>
<area shape="rect" id="node5" href="$dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" title="Method to find the representative of the set to which i belongs to, T(n) = O(1)" alt="" coords="409,81,501,108"/>
<area shape="rect" id="node6" href="$dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" title="A utility function which check whether i and j belongs to same set or not." alt="" coords="267,107,361,133"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/swap.html#" title=" " alt="" coords="275,157,353,184"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/at#" title=" " alt="" coords="110,31,213,57"/>
<area shape="rect" id="node4" href="$dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" title="Method to print all the parents of i, or the path from i to representative." alt="" coords="104,81,219,108"/>
<area shape="rect" id="node5" href="$dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com..." alt="" coords="110,132,213,159"/>
<area shape="rect" id="node6" href="$dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" title="Method to find the representative of the set to which i belongs to, T(n) = O(1)" alt="" coords="409,107,501,133"/>
<area shape="rect" id="node7" href="$dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" title="A utility function which check whether i and j belongs to same set or not." alt="" coords="267,132,361,159"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/swap#" title=" " alt="" coords="275,183,353,209"/>
</map>

View File

@@ -1 +1 @@
05fd810df88836bd72af8e5abb419c5c
713091d4fdbace15593d7142a5580f78

View File

@@ -4,17 +4,17 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: test1 Pages: 1 -->
<svg width="380pt" height="142pt"
viewBox="0.00 0.00 380.00 142.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 138)">
<svg width="380pt" height="161pt"
viewBox="0.00 0.00 380.00 161.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 157)">
<title>test1</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 376,-138 376,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-157 376,-157 376,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Self&#45;implementations, 1st test.">
<polygon fill="#bfbfbf" stroke="black" points="0,-76.5 0,-95.5 38,-95.5 38,-76.5 0,-76.5"/>
<text text-anchor="middle" x="19" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-95.5 0,-114.5 38,-114.5 38,-95.5 0,-95.5"/>
<text text-anchor="middle" x="19" y="-102.5" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
</a>
</g>
</g>
@@ -22,107 +22,122 @@
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d7/d35/matrix__exponentiation_8cpp.html#ad8389ed58fd0ec66df248014775ad1fa" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="215.5,-114.5 215.5,-133.5 247.5,-133.5 247.5,-114.5 215.5,-114.5"/>
<text text-anchor="middle" x="231.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">ans</text>
<polygon fill="white" stroke="black" points="215.5,-133.5 215.5,-152.5 247.5,-152.5 247.5,-133.5 215.5,-133.5"/>
<text text-anchor="middle" x="231.5" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">ans</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M38.2,-93.52C48.53,-97.5 61.81,-102.15 74,-105 119.54,-115.64 174,-120.54 205.19,-122.62"/>
<polygon fill="midnightblue" stroke="midnightblue" points="205,-126.12 215.2,-123.25 205.44,-119.13 205,-126.12"/>
<path fill="none" stroke="midnightblue" d="M29.71,-114.69C39.79,-124 56.51,-137.46 74,-143 118.49,-157.08 173.72,-152.27 205.26,-147.58"/>
<polygon fill="midnightblue" stroke="midnightblue" points="206.05,-150.99 215.37,-145.95 204.94,-144.08 206.05,-150.99"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" target="_top" xlink:title="Method to print all the parents of i, or the path from i to representative.">
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 160,-95.5 160,-76.5 74,-76.5"/>
<text text-anchor="middle" x="117" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::getParents</text>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/at#" xlink:title=" ">
<polygon fill="white" stroke="black" points="78.5,-114.5 78.5,-133.5 155.5,-133.5 155.5,-114.5 78.5,-114.5"/>
<text text-anchor="middle" x="117" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::at</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M38.06,-86C45.48,-86 54.48,-86 63.7,-86"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.73,-89.5 73.73,-86 63.73,-82.5 63.73,-89.5"/>
<path fill="none" stroke="midnightblue" d="M38.06,-108.57C46.71,-110.29 57.52,-112.42 68.3,-114.56"/>
<polygon fill="midnightblue" stroke="midnightblue" points="67.66,-118 78.14,-116.51 69.01,-111.13 67.66,-118"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" target="_top" xlink:title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com...">
<g id="a_node4"><a xlink:href="../../dd/d1f/classdsu.html#ab8ee27083a3c2e2df80755165a2ec280" target="_top" xlink:title="Method to print all the parents of i, or the path from i to representative.">
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 160,-95.5 160,-76.5 74,-76.5"/>
<text text-anchor="middle" x="117" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::getParents</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M38.06,-101.43C45.48,-99.96 54.48,-98.18 63.7,-96.35"/>
<polygon fill="midnightblue" stroke="midnightblue" points="64.6,-99.74 73.73,-94.37 63.24,-92.87 64.6,-99.74"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../dd/d1f/classdsu.html#a81897528bdb53fd5e796d75d7dbc430f" target="_top" xlink:title="Method that combines two disjoint sets to which i and j belongs to and make a single set having a com...">
<polygon fill="white" stroke="black" points="78.5,-38.5 78.5,-57.5 155.5,-57.5 155.5,-38.5 78.5,-38.5"/>
<text text-anchor="middle" x="117" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::unionSet</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M32.43,-95.24C43.1,-87.11 59.07,-75.53 74,-67 77.01,-65.28 80.2,-63.6 83.43,-61.99"/>
<polygon fill="midnightblue" stroke="midnightblue" points="84.97,-65.14 92.5,-57.69 81.97,-58.81 84.97,-65.14"/>
</g>
<!-- Node4&#45;&gt;Node2 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M38.06,-78.85C50.53,-73.91 67.5,-67.2 82.42,-61.29"/>
<polygon fill="midnightblue" stroke="midnightblue" points="83.85,-64.49 91.86,-57.56 81.27,-57.98 83.85,-64.49"/>
<title>Node4&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M139.93,-95.58C146.44,-98.51 153.54,-101.8 160,-105 175.54,-112.69 192.68,-121.91 206.16,-129.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="204.81,-132.6 215.26,-134.39 208.21,-126.48 204.81,-132.6"/>
</g>
<!-- Node3&#45;&gt;Node2 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M146.39,-95.59C164.67,-101.76 188.21,-109.71 205.73,-115.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="204.68,-118.97 215.27,-118.86 206.92,-112.34 204.68,-118.97"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" target="_top" xlink:title="Method to find the representative of the set to which i belongs to, T(n) = O(1)">
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d1f/classdsu.html#a16851f78fe390fc1430905c83d6a2f1c" target="_top" xlink:title="Method to find the representative of the set to which i belongs to, T(n) = O(1)">
<polygon fill="white" stroke="black" points="303,-57.5 303,-76.5 372,-76.5 372,-57.5 303,-57.5"/>
<text text-anchor="middle" x="337.5" y="-64.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::findSet</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node5</title>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M149.56,-57.51C163.63,-61.27 180.5,-65.14 196,-67 228.21,-70.87 264.88,-70.72 292.68,-69.68"/>
<polygon fill="midnightblue" stroke="midnightblue" points="293.03,-73.17 302.87,-69.24 292.73,-66.17 293.03,-73.17"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" target="_top" xlink:title="A utility function which check whether i and j belongs to same set or not.">
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../dd/d1f/classdsu.html#a64d25c5986742f7c234ed449b2ff7303" target="_top" xlink:title="A utility function which check whether i and j belongs to same set or not.">
<polygon fill="white" stroke="black" points="196,-38.5 196,-57.5 267,-57.5 267,-38.5 196,-38.5"/>
<text text-anchor="middle" x="231.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">dsu::isSame</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge7" class="edge">
<title>Node4&#45;&gt;Node6</title>
<!-- Node5&#45;&gt;Node7 -->
<g id="edge8" class="edge">
<title>Node5&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M155.77,-48C165.34,-48 175.72,-48 185.6,-48"/>
<polygon fill="midnightblue" stroke="midnightblue" points="185.67,-51.5 195.67,-48 185.67,-44.5 185.67,-51.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/swap.html#" xlink:title=" ">
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/swap#" xlink:title=" ">
<polygon fill="white" stroke="black" points="202,-0.5 202,-19.5 261,-19.5 261,-0.5 202,-0.5"/>
<text text-anchor="middle" x="231.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::swap</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node4&#45;&gt;Node7</title>
<!-- Node5&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node5&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M146.39,-38.41C160.38,-33.69 177.44,-27.92 192.54,-22.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="193.77,-26.1 202.12,-19.59 191.53,-19.47 193.77,-26.1"/>
</g>
<!-- Node5&#45;&gt;Node5 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node5</title>
<!-- Node6&#45;&gt;Node6 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M321.16,-76.76C313.21,-85.57 318.66,-95 337.5,-95 349.27,-95 355.82,-91.31 357.13,-86.4"/>
<polygon fill="midnightblue" stroke="midnightblue" points="360.38,-85.09 353.84,-76.76 353.76,-87.35 360.38,-85.09"/>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node5</title>
<!-- Node7&#45;&gt;Node6 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M267.13,-54.33C275.37,-55.83 284.27,-57.46 292.85,-59.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="292.26,-62.48 302.73,-60.83 293.52,-55.59 292.26,-62.48"/>
</g>

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB