Files
ortools-clone/docs/cpp_graph/classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html
Laurent Perron 0ac3fa17eb more linear doc
2019-07-15 17:42:24 -07:00

180 lines
10 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OR-Tools</title>
<meta http-equiv="Content-Type" content="text/html;"/>
<meta charset="utf-8"/>
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="banner-container">
<div id="banner">
<span id="sfml">OR-Tools 7.2</span>
</div>
</div>
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
<div id="content">
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">util::UndirectedAdjacencyListsOfDirectedGraph&lt; Graph &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class Graph&gt;<br />
class util::UndirectedAdjacencyListsOfDirectedGraph&lt; Graph &gt;</h3>
<p>This can be used to view a directed graph (that supports reverse arcs) from <a class="el" href="graph_8h.html">graph.h</a> as un undirected graph: operator[](node) returns a pseudo-container that iterates over all nodes adjacent to "node" (from outgoing or incoming arcs). </p>
<p>CAVEAT: Self-arcs (aka loops) will appear twice.</p>
<p>Example: ReverseArcsStaticGraph&lt;&gt; dgraph; ... UndirectedAdjacencyListsOfDirectedGraph&lt;decltype(dgraph)&gt; ugraph(dgraph); for (int neighbor_of_node_42 : ugraph[42]) { ... } </p>
<p class="definition">Definition at line <a class="el" href="util_8h_source.html#l00098">98</a> of file <a class="el" href="util_8h_source.html">util.h</a>.</p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph_1_1AdjacencyListIterator.html">AdjacencyListIterator</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a6402dd9e7851af22b907c0af3e240dce"><td class="memItemLeft" align="right" valign="top">typedef Graph::OutgoingOrOppositeIncomingArcIterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html#a6402dd9e7851af22b907c0af3e240dce">ArcIterator</a></td></tr>
<tr class="separator:a6402dd9e7851af22b907c0af3e240dce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa3254dffa224cf75efab4e3b034b39d8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html#aa3254dffa224cf75efab4e3b034b39d8">UndirectedAdjacencyListsOfDirectedGraph</a> (const <a class="el" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a> &amp;graph)</td></tr>
<tr class="separator:aa3254dffa224cf75efab4e3b034b39d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d68da65b93ce8e85c66d431858897bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="iterators_8h.html#af3f6bc803bbe87af730cf9e41a35cf68">BeginEndWrapper</a>&lt; <a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph_1_1AdjacencyListIterator.html">AdjacencyListIterator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html#a8d68da65b93ce8e85c66d431858897bb">operator[]</a> (int node) const</td></tr>
<tr class="memdesc:a8d68da65b93ce8e85c66d431858897bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pseudo-container of all the nodes adjacent to "node". <a href="#a8d68da65b93ce8e85c66d431858897bb">More...</a><br /></td></tr>
<tr class="separator:a8d68da65b93ce8e85c66d431858897bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a6402dd9e7851af22b907c0af3e240dce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6402dd9e7851af22b907c0af3e240dce">&#9670;&nbsp;</a></span>ArcIterator</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Graph &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef Graph::OutgoingOrOppositeIncomingArcIterator <a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html">util::UndirectedAdjacencyListsOfDirectedGraph</a>&lt; <a class="el" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a> &gt;::<a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html#a6402dd9e7851af22b907c0af3e240dce">ArcIterator</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="util_8h_source.html#l00103">103</a> of file <a class="el" href="util_8h_source.html">util.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa3254dffa224cf75efab4e3b034b39d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3254dffa224cf75efab4e3b034b39d8">&#9670;&nbsp;</a></span>UndirectedAdjacencyListsOfDirectedGraph()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Graph &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html">util::UndirectedAdjacencyListsOfDirectedGraph</a>&lt; <a class="el" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a> &gt;::<a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html">UndirectedAdjacencyListsOfDirectedGraph</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a> &amp;&#160;</td>
<td class="paramname"><em>graph</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="util_8h_source.html#l00100">100</a> of file <a class="el" href="util_8h_source.html">util.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8d68da65b93ce8e85c66d431858897bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d68da65b93ce8e85c66d431858897bb">&#9670;&nbsp;</a></span>operator[]()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Graph &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="iterators_8h.html#af3f6bc803bbe87af730cf9e41a35cf68">BeginEndWrapper</a>&lt;<a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph_1_1AdjacencyListIterator.html">AdjacencyListIterator</a>&gt; <a class="el" href="classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html">util::UndirectedAdjacencyListsOfDirectedGraph</a>&lt; <a class="el" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a> &gt;::operator[] </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a pseudo-container of all the nodes adjacent to "node". </p>
<p class="definition">Definition at line <a class="el" href="util_8h_source.html#l00118">118</a> of file <a class="el" href="util_8h_source.html">util.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="util_8h_source.html">util.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>