Files
ortools-clone/docs/cpp_graph/graphs_8h_source.html
2019-06-13 15:51:12 +02:00

83 lines
35 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="doxygen.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.1@</span>
</div>
</div>
<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><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_725f3a5915051842f84e3ea508be2a62.html">graph</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">graphs.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="graphs_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// Temporary utility class needed as long as we have two slightly</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// different graph interface: The one in ebert_graph.h and the one in graph.h</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef OR_TOOLS_GRAPH_GRAPHS_H_</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define OR_TOOLS_GRAPH_GRAPHS_H_</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ebert__graph_8h.html">ortools/graph/ebert_graph.h</a>&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">// Since StarGraph does not have exactly the same interface as the other</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// graphs, we define a correspondence there.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Graph&gt;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html"> 27</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1Graphs.html">Graphs</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d"> 28</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceoperations__research.html#a31d858394c5eed1fa21edc3da47047c1">Graph::ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">ArcIndex</a>;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#a41cd02c6876d39529d121b0f6102d3ef"> 29</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceoperations__research.html#a0e629e35bfa311b31dd7f5065eb834bb">Graph::NodeIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#a41cd02c6876d39529d121b0f6102d3ef">NodeIndex</a>;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#a9f1fe8a24918ad07513b5707f589e731"> 30</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#a9f1fe8a24918ad07513b5707f589e731">OppositeArc</a>(<span class="keyword">const</span> <a class="code" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a>&amp; graph, <a class="code" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">ArcIndex</a> arc) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">return</span> graph.OppositeArc(arc);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; }</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#a66b7ad7630645132130da5a258792f4d"> 33</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1Graphs.html#a66b7ad7630645132130da5a258792f4d">IsArcValid</a>(<span class="keyword">const</span> <a class="code" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a>&amp; graph, <a class="code" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">ArcIndex</a> arc) {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordflow">return</span> graph.IsArcValid(arc);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; }</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#ab2ae542c84a1a9aa685f1e6c8e2f5503"> 36</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1Graphs.html#a41cd02c6876d39529d121b0f6102d3ef">NodeIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#ab2ae542c84a1a9aa685f1e6c8e2f5503">NodeReservation</a>(<span class="keyword">const</span> <a class="code" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a>&amp; graph) {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordflow">return</span> graph.node_capacity();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; }</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#a3e2837ba11c076d455d71ff67c8ddc36"> 39</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#a3e2837ba11c076d455d71ff67c8ddc36">ArcReservation</a>(<span class="keyword">const</span> <a class="code" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a>&amp; graph) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">return</span> graph.arc_capacity();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; }</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#a1a8c52fdd8fe2db239708cb506d647e5"> 42</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1Graphs.html#a1a8c52fdd8fe2db239708cb506d647e5">Build</a>(<a class="code" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a>* graph) { graph-&gt;Build(); }</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs.html#ac47c4735096495d462403431e16f0940"> 43</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1Graphs.html#ac47c4735096495d462403431e16f0940">Build</a>(<a class="code" href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">Graph</a>* graph, std::vector&lt;ArcIndex&gt;* permutation) {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; graph-&gt;Build(permutation);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;};</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html"> 49</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1Graphs.html">Graphs</a>&lt;<a class="code" href="namespaceoperations__research.html">operations_research</a>::<a class="code" href="classoperations__research_1_1EbertGraph.html">StarGraph</a>&gt; {</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ac66e0eebbeabd9a4a3b24cfb734a589b"> 50</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="classoperations__research_1_1EbertGraph.html">operations_research::StarGraph</a> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ac66e0eebbeabd9a4a3b24cfb734a589b">Graph</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#if defined(_MSC_VER)</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">typedef</span> <a class="code" href="classoperations__research_1_1EbertGraph.html#a63a3ceac3b9c14b81d517117914a7010">Graph::ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">ArcIndex</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">typedef</span> <a class="code" href="classoperations__research_1_1EbertGraph.html#af1720ff38e249834efb67023e4393fad">Graph::NodeIndex</a> <a class="code" href="structoperations__research_1_1Graphs.html#a41cd02c6876d39529d121b0f6102d3ef">NodeIndex</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7"> 55</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classoperations__research_1_1EbertGraph.html#a63a3ceac3b9c14b81d517117914a7010">Graph::ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7">ArcIndex</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a77ebbaf314514d539596cf23baf1b20c"> 56</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classoperations__research_1_1EbertGraph.html#af1720ff38e249834efb67023e4393fad">Graph::NodeIndex</a> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a77ebbaf314514d539596cf23baf1b20c">NodeIndex</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ad901704a8b3fb67de7a634b831ad0ff7"> 58</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7">ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ad901704a8b3fb67de7a634b831ad0ff7">OppositeArc</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1EbertGraph.html">Graph</a>&amp; graph, <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7">ArcIndex</a> arc) {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordflow">return</span> graph.<a class="code" href="classoperations__research_1_1EbertGraph.html#a02cadbddb2eabfe3a26a3af5f96cc6a5">Opposite</a>(arc);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; }</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#af7de014805e897326707e523754b4b4f"> 61</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#af7de014805e897326707e523754b4b4f">IsArcValid</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1EbertGraph.html">Graph</a>&amp; graph, <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7">ArcIndex</a> arc) {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span> graph.<a class="code" href="classoperations__research_1_1EbertGraph.html#a93e854b7d8f6448efa30629052c1b835">CheckArcValidity</a>(arc);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; }</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#adebf187f9e507da38f439cd291864903"> 64</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a77ebbaf314514d539596cf23baf1b20c">NodeIndex</a> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#adebf187f9e507da38f439cd291864903">NodeReservation</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1EbertGraph.html">Graph</a>&amp; graph) {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> graph.<a class="code" href="classoperations__research_1_1StarGraphBase.html#a51a5033049b63ee5ce35b531b8474f0a">max_num_nodes</a>();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a92594364f4f2937129c921c372742a45"> 67</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7">ArcIndex</a> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a92594364f4f2937129c921c372742a45">ArcReservation</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1EbertGraph.html">Graph</a>&amp; graph) {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">return</span> graph.<a class="code" href="classoperations__research_1_1StarGraphBase.html#a8aad937029f57b70efe059b908241685">max_num_arcs</a>();</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a1f747b6fd23eaac5feac8cb4f3f3a798"> 70</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a1f747b6fd23eaac5feac8cb4f3f3a798">Build</a>(<a class="code" href="classoperations__research_1_1EbertGraph.html">Graph</a>* graph) {}</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ad09c8a0cdfd9a213a8d89883e794e2d1"> 71</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ad09c8a0cdfd9a213a8d89883e794e2d1">Build</a>(<a class="code" href="classoperations__research_1_1EbertGraph.html">Graph</a>* graph, std::vector&lt;ArcIndex&gt;* permutation) {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; permutation-&gt;clear();</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;};</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;} <span class="comment">// namespace operations_research</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="preprocessor">#endif // OR_TOOLS_GRAPH_GRAPHS_H_</span></div><div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_adebf187f9e507da38f439cd291864903"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#adebf187f9e507da38f439cd291864903">operations_research::Graphs&lt; operations_research::StarGraph &gt;::NodeReservation</a></div><div class="ttdeci">static NodeIndex NodeReservation(const Graph &amp;graph)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00064">graphs.h:64</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_a92594364f4f2937129c921c372742a45"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a92594364f4f2937129c921c372742a45">operations_research::Graphs&lt; operations_research::StarGraph &gt;::ArcReservation</a></div><div class="ttdeci">static ArcIndex ArcReservation(const Graph &amp;graph)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00067">graphs.h:67</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html"><div class="ttname"><a href="structoperations__research_1_1Graphs.html">operations_research::Graphs</a></div><div class="ttdoc">Since StarGraph does not have exactly the same interface as the other graphs, we define a corresponde...</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00027">graphs.h:27</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_a1f747b6fd23eaac5feac8cb4f3f3a798"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a1f747b6fd23eaac5feac8cb4f3f3a798">operations_research::Graphs&lt; operations_research::StarGraph &gt;::Build</a></div><div class="ttdeci">static void Build(Graph *graph)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00070">graphs.h:70</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_a1a8c52fdd8fe2db239708cb506d647e5"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#a1a8c52fdd8fe2db239708cb506d647e5">operations_research::Graphs::Build</a></div><div class="ttdeci">static void Build(Graph *graph)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00042">graphs.h:42</a></div></div>
<div class="ttc" id="classoperations__research_1_1EbertGraph_html_a02cadbddb2eabfe3a26a3af5f96cc6a5"><div class="ttname"><a href="classoperations__research_1_1EbertGraph.html#a02cadbddb2eabfe3a26a3af5f96cc6a5">operations_research::EbertGraph::Opposite</a></div><div class="ttdeci">ArcIndexType Opposite(const ArcIndexType arc) const</div><div class="ttdoc">Returns the opposite arc, i.e the direct arc is the arc is in reverse direction, and the reverse arc ...</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l01409">ebert_graph.h:1409</a></div></div>
<div class="ttc" id="namespaceutil_html_ae76339cb2dcd3bc05ad762146f91fdda"><div class="ttname"><a href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">util::Graph</a></div><div class="ttdeci">ListGraph Graph</div><div class="ttdoc">Defining the simplest Graph interface as Graph for convenience.</div><div class="ttdef"><b>Definition:</b> <a href="graph_8h_source.html#l02358">graph.h:2358</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_a41cd02c6876d39529d121b0f6102d3ef"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#a41cd02c6876d39529d121b0f6102d3ef">operations_research::Graphs::NodeIndex</a></div><div class="ttdeci">Graph::NodeIndex NodeIndex</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00029">graphs.h:29</a></div></div>
<div class="ttc" id="classoperations__research_1_1StarGraphBase_html_a8aad937029f57b70efe059b908241685"><div class="ttname"><a href="classoperations__research_1_1StarGraphBase.html#a8aad937029f57b70efe059b908241685">operations_research::StarGraphBase::max_num_arcs</a></div><div class="ttdeci">ArcIndexType max_num_arcs() const</div><div class="ttdoc">Returns the maximum possible number of original arcs in the graph.</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00259">ebert_graph.h:259</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_a3e2837ba11c076d455d71ff67c8ddc36"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#a3e2837ba11c076d455d71ff67c8ddc36">operations_research::Graphs::ArcReservation</a></div><div class="ttdeci">static ArcIndex ArcReservation(const Graph &amp;graph)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00039">graphs.h:39</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_ad901704a8b3fb67de7a634b831ad0ff7"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ad901704a8b3fb67de7a634b831ad0ff7">operations_research::Graphs&lt; operations_research::StarGraph &gt;::OppositeArc</a></div><div class="ttdeci">static ArcIndex OppositeArc(const Graph &amp;graph, ArcIndex arc)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00058">graphs.h:58</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_ad09c8a0cdfd9a213a8d89883e794e2d1"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ad09c8a0cdfd9a213a8d89883e794e2d1">operations_research::Graphs&lt; operations_research::StarGraph &gt;::Build</a></div><div class="ttdeci">static void Build(Graph *graph, std::vector&lt; ArcIndex &gt; *permutation)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00071">graphs.h:71</a></div></div>
<div class="ttc" id="classoperations__research_1_1StarGraphBase_html_a51a5033049b63ee5ce35b531b8474f0a"><div class="ttname"><a href="classoperations__research_1_1StarGraphBase.html#a51a5033049b63ee5ce35b531b8474f0a">operations_research::StarGraphBase::max_num_nodes</a></div><div class="ttdeci">NodeIndexType max_num_nodes() const</div><div class="ttdoc">Returns the maximum possible number of nodes in the graph.</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00255">ebert_graph.h:255</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_ab48fb0d55ba8e5a1f3fae0eb20c29e2d"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#ab48fb0d55ba8e5a1f3fae0eb20c29e2d">operations_research::Graphs::ArcIndex</a></div><div class="ttdeci">Graph::ArcIndex ArcIndex</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00028">graphs.h:28</a></div></div>
<div class="ttc" id="classoperations__research_1_1EbertGraph_html_a93e854b7d8f6448efa30629052c1b835"><div class="ttname"><a href="classoperations__research_1_1EbertGraph.html#a93e854b7d8f6448efa30629052c1b835">operations_research::EbertGraph::CheckArcValidity</a></div><div class="ttdeci">bool CheckArcValidity(const ArcIndexType arc) const</div><div class="ttdoc">Utility function to check that an arc index is within the bounds AND different from kNilArc.</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l01371">ebert_graph.h:1371</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_a77ebbaf314514d539596cf23baf1b20c"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#a77ebbaf314514d539596cf23baf1b20c">operations_research::Graphs&lt; operations_research::StarGraph &gt;::NodeIndex</a></div><div class="ttdeci">Graph::NodeIndex NodeIndex</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00056">graphs.h:56</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_af7de014805e897326707e523754b4b4f"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#af7de014805e897326707e523754b4b4f">operations_research::Graphs&lt; operations_research::StarGraph &gt;::IsArcValid</a></div><div class="ttdeci">static bool IsArcValid(const Graph &amp;graph, ArcIndex arc)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00061">graphs.h:61</a></div></div>
<div class="ttc" id="classoperations__research_1_1EbertGraph_html_af1720ff38e249834efb67023e4393fad"><div class="ttname"><a href="classoperations__research_1_1EbertGraph.html#af1720ff38e249834efb67023e4393fad">operations_research::EbertGraph::NodeIndex</a></div><div class="ttdeci">NodeIndexType NodeIndex</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l01223">ebert_graph.h:1223</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_a66b7ad7630645132130da5a258792f4d"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#a66b7ad7630645132130da5a258792f4d">operations_research::Graphs::IsArcValid</a></div><div class="ttdeci">static bool IsArcValid(const Graph &amp;graph, ArcIndex arc)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00033">graphs.h:33</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_ab2ae542c84a1a9aa685f1e6c8e2f5503"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#ab2ae542c84a1a9aa685f1e6c8e2f5503">operations_research::Graphs::NodeReservation</a></div><div class="ttdeci">static NodeIndex NodeReservation(const Graph &amp;graph)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00036">graphs.h:36</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a31d858394c5eed1fa21edc3da47047c1"><div class="ttname"><a href="namespaceoperations__research.html#a31d858394c5eed1fa21edc3da47047c1">operations_research::ArcIndex</a></div><div class="ttdeci">int32 ArcIndex</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00201">ebert_graph.h:201</a></div></div>
<div class="ttc" id="namespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in c...</div><div class="ttdef"><b>Definition:</b> <a href="christofides_8h_source.html#l00033">christofides.h:33</a></div></div>
<div class="ttc" id="classoperations__research_1_1EbertGraph_html"><div class="ttname"><a href="classoperations__research_1_1EbertGraph.html">operations_research::EbertGraph</a></div><div class="ttdoc">Forward declarations.</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00188">ebert_graph.h:188</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_ac47c4735096495d462403431e16f0940"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#ac47c4735096495d462403431e16f0940">operations_research::Graphs::Build</a></div><div class="ttdeci">static void Build(Graph *graph, std::vector&lt; ArcIndex &gt; *permutation)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00043">graphs.h:43</a></div></div>
<div class="ttc" id="ebert__graph_8h_html"><div class="ttname"><a href="ebert__graph_8h.html">ebert_graph.h</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_ac66e0eebbeabd9a4a3b24cfb734a589b"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#ac66e0eebbeabd9a4a3b24cfb734a589b">operations_research::Graphs&lt; operations_research::StarGraph &gt;::Graph</a></div><div class="ttdeci">operations_research::StarGraph Graph</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00050">graphs.h:50</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a0e629e35bfa311b31dd7f5065eb834bb"><div class="ttname"><a href="namespaceoperations__research.html#a0e629e35bfa311b31dd7f5065eb834bb">operations_research::NodeIndex</a></div><div class="ttdeci">int32 NodeIndex</div><div class="ttdoc">Standard instantiation of ForwardEbertGraph (named 'ForwardStarGraph') of EbertGraph (named 'StarGrap...</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00192">ebert_graph.h:192</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_html_a9f1fe8a24918ad07513b5707f589e731"><div class="ttname"><a href="structoperations__research_1_1Graphs.html#a9f1fe8a24918ad07513b5707f589e731">operations_research::Graphs::OppositeArc</a></div><div class="ttdeci">static ArcIndex OppositeArc(const Graph &amp;graph, ArcIndex arc)</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00030">graphs.h:30</a></div></div>
<div class="ttc" id="classoperations__research_1_1EbertGraph_html_a63a3ceac3b9c14b81d517117914a7010"><div class="ttname"><a href="classoperations__research_1_1EbertGraph.html#a63a3ceac3b9c14b81d517117914a7010">operations_research::EbertGraph::ArcIndex</a></div><div class="ttdeci">ArcIndexType ArcIndex</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l01224">ebert_graph.h:1224</a></div></div>
<div class="ttc" id="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4_html_aa6368fe9b8973e136da83e6a13825ef7"><div class="ttname"><a href="structoperations__research_1_1Graphs_3_01operations__research_1_1StarGraph_01_4.html#aa6368fe9b8973e136da83e6a13825ef7">operations_research::Graphs&lt; operations_research::StarGraph &gt;::ArcIndex</a></div><div class="ttdeci">Graph::ArcIndex ArcIndex</div><div class="ttdef"><b>Definition:</b> <a href="graphs_8h_source.html#l00055">graphs.h:55</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>