mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-12 11:37:18 +08:00
Documentation for 0931d530ae
This commit is contained in:
@@ -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.5"/>
|
||||
<meta name="generator" content="Doxygen 1.9.6"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: Graph Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<!-- Generated by Doxygen 1.9.6 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
@@ -222,8 +222,8 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
<tr class="separator:aa0aaff1a0c13bdf209ea40b83ac01ae6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p >Implementation of graph class.</p>
|
||||
<p >The graph will be represented using Adjacency List representation. This class contains 2 data members "m_vertices" & "m_adjList" used to represent the number of vertices and adjacency list of the graph respectively. The vertices are labelled 0 - (m_vertices - 1). </p>
|
||||
<div class="textblock"><p>Implementation of graph class.</p>
|
||||
<p>The graph will be represented using Adjacency List representation. This class contains 2 data members "m_vertices" & "m_adjList" used to represent the number of vertices and adjacency list of the graph respectively. The vertices are labelled 0 - (m_vertices - 1). </p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="ad3b98f95ee53f91afad11b8eaddc35e0" name="ad3b98f95ee53f91afad11b8eaddc35e0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad3b98f95ee53f91afad11b8eaddc35e0">◆ </a></span>Graph() <span class="overload">[1/7]</span></h2>
|
||||
@@ -391,7 +391,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Create a graph from vertices and adjacency list.</p>
|
||||
<p>Create a graph from vertices and adjacency list.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">vertices</td><td>specify the number of vertices the graph would contain. </td></tr>
|
||||
@@ -437,7 +437,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Create a graph from vertices and adjacency list.</p>
|
||||
<p>Create a graph from vertices and adjacency list.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">vertices</td><td>specify the number of vertices the graph would contain. </td></tr>
|
||||
@@ -482,8 +482,8 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Create a graph from vertices and a set of edges.</p>
|
||||
<p >Adjacency list of the graph would be created from the set of edges. If the source or destination of any edge has a value greater or equal to number of vertices, then it would throw a range_error.</p>
|
||||
<p>Create a graph from vertices and a set of edges.</p>
|
||||
<p>Adjacency list of the graph would be created from the set of edges. If the source or destination of any edge has a value greater or equal to number of vertices, then it would throw a range_error.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">vertices</td><td>specify the number of vertices the graph would contain. </td></tr>
|
||||
@@ -570,7 +570,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Add an edge in the graph.</p>
|
||||
<p>Add an edge in the graph.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">edge</td><td>that needs to be added. </td></tr>
|
||||
@@ -761,7 +761,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Add an <a class="el" href="../../d7/d77/class_edge.html">Edge</a> in the graph</p>
|
||||
<p>Add an <a class="el" href="../../d7/d77/class_edge.html">Edge</a> in the graph</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">source</td><td>is source vertex of the edge. </td></tr>
|
||||
@@ -802,7 +802,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Add vertices in the graph.</p>
|
||||
<p>Add vertices in the graph.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">num</td><td>is the number of vertices to be added. It adds 1 vertex by default. </td></tr>
|
||||
@@ -942,7 +942,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Return a const reference of the adjacency list.</p>
|
||||
<p>Return a const reference of the adjacency list.</p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>const reference to the adjacency list </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 103</span> {</div>
|
||||
<div class="line"><span class="lineno"> 104</span> <span class="keywordflow">return</span> m_adjList;</div>
|
||||
@@ -1080,7 +1080,7 @@ int </td><td class="memItemRight" valign="bottom"><b>max_flow</b> = 0</td><
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../da/d9a/class_graph.html">Graph</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.5 </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.6 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user