2019-06-13 15:36:14 +02:00
<!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"/> -->
2019-06-20 23:08:48 +02:00
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
2019-06-13 15:36:14 +02:00
< 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" >
2019-06-29 18:18:08 +02:00
< span id = "sfml" > OR-Tools 7.2< / span >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-06-29 18:18:08 +02:00
< link rel = "icon" href = "https://developers.google.com/optimization/images/orLogo.png" >
2019-06-13 15:36:14 +02:00
< div id = "content" >
<!-- Generated by Doxygen 1.8.15 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  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 >
2019-07-15 17:42:24 -07:00
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
2019-06-13 15:36:14 +02:00
< / ul >
< / div >
2019-07-12 13:25:23 -07:00
< / 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">
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-07-12 13:25:23 -07:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
2019-06-13 15:36:14 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#pub-types" > Public Types< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classutil_1_1UndirectedAdjacencyListsOfDirectedGraph-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > util::UndirectedAdjacencyListsOfDirectedGraph< Graph > Class Template Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2019-07-12 13:25:23 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < h3 > template< class Graph> < br / >
class util::UndirectedAdjacencyListsOfDirectedGraph< Graph > < / h3 >
2019-06-13 15:36:14 +02:00
2019-07-12 13:25:23 -07:00
< 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< > dgraph; ... UndirectedAdjacencyListsOfDirectedGraph< decltype(dgraph)> ugraph(dgraph); for (int neighbor_of_node_42 : ugraph[42]) { ... } < / p >
2019-06-13 15:36:14 +02:00
2019-07-12 13:25:23 -07:00
< 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" >
2019-06-13 15:36:14 +02:00
< 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   < / 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" >   < / 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  < / 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" >   < / 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" >   < / 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 > & graph)< / td > < / tr >
< tr class = "separator:aa3254dffa224cf75efab4e3b034b39d8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8d68da65b93ce8e85c66d431858897bb" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "iterators_8h.html#af3f6bc803bbe87af730cf9e41a35cf68" > BeginEndWrapper< / a > < < a class = "el" href = "classutil_1_1UndirectedAdjacencyListsOfDirectedGraph_1_1AdjacencyListIterator.html" > AdjacencyListIterator< / a > >   < / 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" >   < / 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" >   < / td > < / tr >
< / table >
2019-07-12 13:25:23 -07:00
< h2 class = "groupheader" > Member Typedef Documentation< / h2 >
2019-06-13 15:36:14 +02:00
< a id = "a6402dd9e7851af22b907c0af3e240dce" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6402dd9e7851af22b907c0af3e240dce" > ◆ < / a > < / span > ArcIterator< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class Graph > < / div >
< table class = "memname" >
< tr >
< td class = "memname" > typedef Graph::OutgoingOrOppositeIncomingArcIterator < a class = "el" href = "classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html" > util::UndirectedAdjacencyListsOfDirectedGraph< / a > < < a class = "el" href = "namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda" > Graph< / a > > ::< 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 & Destructor Documentation< / h2 >
< a id = "aa3254dffa224cf75efab4e3b034b39d8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa3254dffa224cf75efab4e3b034b39d8" > ◆ < / a > < / span > UndirectedAdjacencyListsOfDirectedGraph()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class Graph > < / 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 > < < a class = "el" href = "namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda" > Graph< / a > > ::< 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 > &   < / 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" > ◆ < / a > < / span > operator[]()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class Graph > < / 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 > < < a class = "el" href = "classutil_1_1UndirectedAdjacencyListsOfDirectedGraph_1_1AdjacencyListIterator.html" > AdjacencyListIterator< / a > > < a class = "el" href = "classutil_1_1UndirectedAdjacencyListsOfDirectedGraph.html" > util::UndirectedAdjacencyListsOfDirectedGraph< / a > < < a class = "el" href = "namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda" > Graph< / a > > ::operator[] < / td >
< td > (< / td >
< td class = "paramtype" > int  < / 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 -->
2019-07-12 13:25:23 -07:00
< / div > <!-- doc - content -->
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >