229 lines
38 KiB
HTML
229 lines
38 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"/>-->
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="banner-container">
|
|
<div id="banner">
|
|
<span id="sfml">Google OR-Tools 8.2</span>
|
|
</div>
|
|
</div>
|
|
<div id="content" style="width: 100%; overflow: hidden;">
|
|
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
|
|
<h2>DotNet Reference</h2>
|
|
<ul>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Sat.html">CP-SAT</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Graph.html">Graph</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Algorithms.html">Knapsack solver</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Linear solver</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">Routing</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Util.html">Util</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="content">
|
|
<div align="center">
|
|
<h1 style="color: #145A32;">.Net Reference</h1>
|
|
</div>
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('MaxFlow_8cs_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">MaxFlow.cs</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="MaxFlow_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// <auto-generated /></span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// This file was automatically generated by SWIG (http://www.swig.org).</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// Version 4.0.2</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Do not make changes to this file unless you know what you are doing--modify</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// the SWIG interface file instead.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span><a class="code" href="namespaceGoogle_1_1OrTools_1_1Graph.html">Google.OrTools.Graph</a> {</div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html"> 13</a></span> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">MaxFlow</a> : <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.IDisposable {</div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">private</span> <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.Runtime.InteropServices.HandleRef swigCPtr;</div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#abc050282310ee35f8b4bac77b6103375"> 15</a></span>  <span class="keyword">protected</span> <span class="keywordtype">bool</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a>;</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">internal</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aad58557b2b77f88cd3facf5f05ec5832">MaxFlow</a>(<a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.IntPtr cPtr, <span class="keywordtype">bool</span> cMemoryOwn) {</div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a> = cMemoryOwn;</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  swigCPtr = <span class="keyword">new</span> <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.Runtime.InteropServices.HandleRef(<span class="keyword">this</span>, cPtr);</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  }</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">internal</span> <span class="keyword">static</span> <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.Runtime.InteropServices.HandleRef getCPtr(<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">MaxFlow</a> obj) {</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">return</span> (obj == <span class="keyword">null</span>) ? <span class="keyword">new</span> <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.Runtime.InteropServices.HandleRef(<span class="keyword">null</span>, <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.IntPtr.Zero) : obj.swigCPtr;</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  }</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  ~<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aad58557b2b77f88cd3facf5f05ec5832">MaxFlow</a>() {</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Dispose</a>(<span class="keyword">false</span>);</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  }</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6e2d745cdb7a7b983f861ed6a9a541a7"> 30</a></span>  <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Dispose</a>() {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Dispose</a>(<span class="keyword">true</span>);</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.GC.SuppressFinalize(<span class="keyword">this</span>);</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a8ad4348ef0f9969025bab397e7e27e26"> 35</a></span>  <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a8ad4348ef0f9969025bab397e7e27e26">Dispose</a>(<span class="keywordtype">bool</span> disposing) {</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  lock(<span class="keyword">this</span>) {</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">if</span> (swigCPtr.Handle != <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.IntPtr.Zero) {</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">if</span> (<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a>) {</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a74ee9180aa21cbc122a685187f82fbcb">delete_MaxFlow</a>(swigCPtr);</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  swigCPtr = <span class="keyword">new</span> <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.Runtime.InteropServices.HandleRef(<span class="keyword">null</span>, <a class="code" href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">global::System</a>.IntPtr.Zero);</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aad58557b2b77f88cd3facf5f05ec5832"> 47</a></span>  <span class="keyword">public</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aad58557b2b77f88cd3facf5f05ec5832">MaxFlow</a>() : this(<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.new_MaxFlow(), true) {</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a66eac4815c71eebe1806433677f0254f"> 50</a></span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a66eac4815c71eebe1806433677f0254f">AddArcWithCapacity</a>(<span class="keywordtype">int</span> tail, <span class="keywordtype">int</span> head, <span class="keywordtype">long</span> capacity) {</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">int</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a2434a0c5171abb9bad66e9d1551eb7fc">MaxFlow_AddArcWithCapacity</a>(swigCPtr, tail, head, capacity);</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#acbd57fb2aab56de03d6733d36e6e6cbd"> 55</a></span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#acbd57fb2aab56de03d6733d36e6e6cbd">NumNodes</a>() {</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">int</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a7cf8666769a32a346d55450bb80e9f2e">MaxFlow_NumNodes</a>(swigCPtr);</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a84633dc5be4b4ebf2bde7f60e664ed52"> 60</a></span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a84633dc5be4b4ebf2bde7f60e664ed52">NumArcs</a>() {</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">int</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#af67b711546712d37308e986ab037ce8e">MaxFlow_NumArcs</a>(swigCPtr);</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#af78c832e5a9d686751aff0d21ac8f3e4"> 65</a></span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#af78c832e5a9d686751aff0d21ac8f3e4">Tail</a>(<span class="keywordtype">int</span> arc) {</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a8a5c1db707c26a8879b9bc5b741e7b33">MaxFlow_Tail</a>(swigCPtr, arc);</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#ad6ab95970447703dcf73d01dda07a3d2"> 70</a></span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#ad6ab95970447703dcf73d01dda07a3d2">Head</a>(<span class="keywordtype">int</span> arc) {</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">int</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a30953800e5f82bd876fed39d94b6b3dc">MaxFlow_Head</a>(swigCPtr, arc);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6812340dd92c7eaf5c34080fce687db6"> 75</a></span>  <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6812340dd92c7eaf5c34080fce687db6">Capacity</a>(<span class="keywordtype">int</span> arc) {</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">long</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a63d2c692b225ba72e0f5b0155c9ec4ae">MaxFlow_Capacity</a>(swigCPtr, arc);</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a5e78274982ba66a0e1d32059b14f4f9b"> 80</a></span>  <span class="keyword">public</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">MaxFlow</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a5e78274982ba66a0e1d32059b14f4f9b">Solve</a>(<span class="keywordtype">int</span> source, <span class="keywordtype">int</span> sink) {</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">MaxFlow</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> ret = (<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">MaxFlow</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a>)<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#aba60f0a21e761b151379205e08d5bdf0">MaxFlow_Solve</a>(swigCPtr, source, sink);</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aed1e8fa4267c0a2360847a2f8fd1ee95"> 85</a></span>  <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aed1e8fa4267c0a2360847a2f8fd1ee95">OptimalFlow</a>() {</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">long</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a9dd9783d0d0bddb2d7f418ea5c9780f2">MaxFlow_OptimalFlow</a>(swigCPtr);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a4db64727a4ade79cd3e10b10966a88a9"> 90</a></span>  <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a4db64727a4ade79cd3e10b10966a88a9">Flow</a>(<span class="keywordtype">int</span> arc) {</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">long</span> ret = <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">operations_research_graphPINVOKE</a>.<a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a8c54faf9f67a405cff0c8386b3977875">MaxFlow_Flow</a>(swigCPtr, arc);</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a67a0db04d321a74b7e7fcfd3f1a3f70b"> 95</a></span>  <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> {</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  OPTIMAL,</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  POSSIBLE_OVERFLOW,</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  BAD_INPUT,</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  BAD_RESULT</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div>
|
|
<div class="ttc" id="aProgram_8cs_html_a81a223a02c34d82b47199f08308847f2"><div class="ttname"><a href="Program_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a></div><div class="ttdeci">using System</div><div class="ttdef"><b>Definition:</b> <a href="Program_8cs_source.html#l00014">Program.cs:14</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">Google.OrTools.Graph.MaxFlow</a></div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00013">MaxFlow.cs:13</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a4db64727a4ade79cd3e10b10966a88a9"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a4db64727a4ade79cd3e10b10966a88a9">Google.OrTools.Graph.MaxFlow.Flow</a></div><div class="ttdeci">long Flow(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00090">MaxFlow.cs:90</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a5e78274982ba66a0e1d32059b14f4f9b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a5e78274982ba66a0e1d32059b14f4f9b">Google.OrTools.Graph.MaxFlow.Solve</a></div><div class="ttdeci">MaxFlow.Status Solve(int source, int sink)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00080">MaxFlow.cs:80</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a66eac4815c71eebe1806433677f0254f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a66eac4815c71eebe1806433677f0254f">Google.OrTools.Graph.MaxFlow.AddArcWithCapacity</a></div><div class="ttdeci">int AddArcWithCapacity(int tail, int head, long capacity)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00050">MaxFlow.cs:50</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Google.OrTools.Graph.MaxFlow.Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00095">MaxFlow.cs:95</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a6812340dd92c7eaf5c34080fce687db6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6812340dd92c7eaf5c34080fce687db6">Google.OrTools.Graph.MaxFlow.Capacity</a></div><div class="ttdeci">long Capacity(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00075">MaxFlow.cs:75</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a6e2d745cdb7a7b983f861ed6a9a541a7"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Google.OrTools.Graph.MaxFlow.Dispose</a></div><div class="ttdeci">void Dispose()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00030">MaxFlow.cs:30</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a84633dc5be4b4ebf2bde7f60e664ed52"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a84633dc5be4b4ebf2bde7f60e664ed52">Google.OrTools.Graph.MaxFlow.NumArcs</a></div><div class="ttdeci">int NumArcs()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00060">MaxFlow.cs:60</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a8ad4348ef0f9969025bab397e7e27e26"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a8ad4348ef0f9969025bab397e7e27e26">Google.OrTools.Graph.MaxFlow.Dispose</a></div><div class="ttdeci">virtual void Dispose(bool disposing)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00035">MaxFlow.cs:35</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_aad58557b2b77f88cd3facf5f05ec5832"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aad58557b2b77f88cd3facf5f05ec5832">Google.OrTools.Graph.MaxFlow.MaxFlow</a></div><div class="ttdeci">MaxFlow()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00047">MaxFlow.cs:47</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_abc050282310ee35f8b4bac77b6103375"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#abc050282310ee35f8b4bac77b6103375">Google.OrTools.Graph.MaxFlow.swigCMemOwn</a></div><div class="ttdeci">bool swigCMemOwn</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00015">MaxFlow.cs:15</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_acbd57fb2aab56de03d6733d36e6e6cbd"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#acbd57fb2aab56de03d6733d36e6e6cbd">Google.OrTools.Graph.MaxFlow.NumNodes</a></div><div class="ttdeci">int NumNodes()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00055">MaxFlow.cs:55</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_ad6ab95970447703dcf73d01dda07a3d2"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#ad6ab95970447703dcf73d01dda07a3d2">Google.OrTools.Graph.MaxFlow.Head</a></div><div class="ttdeci">int Head(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00070">MaxFlow.cs:70</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_aed1e8fa4267c0a2360847a2f8fd1ee95"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#aed1e8fa4267c0a2360847a2f8fd1ee95">Google.OrTools.Graph.MaxFlow.OptimalFlow</a></div><div class="ttdeci">long OptimalFlow()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00085">MaxFlow.cs:85</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_af78c832e5a9d686751aff0d21ac8f3e4"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#af78c832e5a9d686751aff0d21ac8f3e4">Google.OrTools.Graph.MaxFlow.Tail</a></div><div class="ttdeci">int Tail(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00065">MaxFlow.cs:65</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html">Google.OrTools.Graph.operations_research_graphPINVOKE</a></div><div class="ttdef"><b>Definition:</b> <a href="operations__research__graphPINVOKE_8cs_source.html#l00013">operations_research_graphPINVOKE.cs:13</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a2434a0c5171abb9bad66e9d1551eb7fc"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a2434a0c5171abb9bad66e9d1551eb7fc">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_AddArcWithCapacity</a></div><div class="ttdeci">static int MaxFlow_AddArcWithCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a30953800e5f82bd876fed39d94b6b3dc"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a30953800e5f82bd876fed39d94b6b3dc">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_Head</a></div><div class="ttdeci">static int MaxFlow_Head(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a63d2c692b225ba72e0f5b0155c9ec4ae"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a63d2c692b225ba72e0f5b0155c9ec4ae">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_Capacity</a></div><div class="ttdeci">static long MaxFlow_Capacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a74ee9180aa21cbc122a685187f82fbcb"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a74ee9180aa21cbc122a685187f82fbcb">Google.OrTools.Graph.operations_research_graphPINVOKE.delete_MaxFlow</a></div><div class="ttdeci">static void delete_MaxFlow(global::System.Runtime.InteropServices.HandleRef jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a7cf8666769a32a346d55450bb80e9f2e"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a7cf8666769a32a346d55450bb80e9f2e">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_NumNodes</a></div><div class="ttdeci">static int MaxFlow_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a8a5c1db707c26a8879b9bc5b741e7b33"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a8a5c1db707c26a8879b9bc5b741e7b33">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_Tail</a></div><div class="ttdeci">static int MaxFlow_Tail(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a8c54faf9f67a405cff0c8386b3977875"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a8c54faf9f67a405cff0c8386b3977875">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_Flow</a></div><div class="ttdeci">static long MaxFlow_Flow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_a9dd9783d0d0bddb2d7f418ea5c9780f2"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#a9dd9783d0d0bddb2d7f418ea5c9780f2">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_OptimalFlow</a></div><div class="ttdeci">static long MaxFlow_OptimalFlow(global::System.Runtime.InteropServices.HandleRef jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_aba60f0a21e761b151379205e08d5bdf0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#aba60f0a21e761b151379205e08d5bdf0">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_Solve</a></div><div class="ttdeci">static int MaxFlow_Solve(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE_html_af67b711546712d37308e986ab037ce8e"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1operations__research__graphPINVOKE.html#af67b711546712d37308e986ab037ce8e">Google.OrTools.Graph.operations_research_graphPINVOKE.MaxFlow_NumArcs</a></div><div class="ttdeci">static int MaxFlow_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1)</div></div>
|
|
<div class="ttc" id="anamespaceGoogle_1_1OrTools_1_1Graph_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1Graph.html">Google.OrTools.Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearSumAssignment_8cs_source.html#l00011">LinearSumAssignment.cs:11</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
</div>
|
|
</div>
|
|
<div id="footer-container">
|
|
<div id="footer">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|