Files
ortools-clone/docs/java/MaxFlow_8java_source.html

73 lines
34 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019-06-13 02:45:44 +02:00
<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:19:36 +02:00
<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">
2019-06-26 12:16:47 +02:00
<span id="sfml">OR-Tools 7.1</span>
</div>
</div>
2019-06-26 12:16:47 +02:00
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
<div id="content">
2019-06-13 02:45:44 +02:00
<!-- 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>
</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_b2c6d49957bf5d0c7726edb4b829cd4d.html">gen</a></li><li class="navelem"><a class="el" href="dir_82da1734a9cb0f1cf40dbd95c2117ce5.html">com</a></li><li class="navelem"><a class="el" href="dir_1713cbfcde5229f242ac28be432e77c9.html">google</a></li><li class="navelem"><a class="el" href="dir_06c320066273db25e45ae140036401c9.html">ortools</a></li><li class="navelem"><a class="el" href="dir_ea218e7dae74866c095640201ac868f7.html">graph</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">MaxFlow.java</div> </div>
</div><!--header-->
<div class="contents">
<a href="MaxFlow_8java.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">/* ----------------------------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Version 4.0.0</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<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="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * the SWIG interface file instead.</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;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="keyword">package </span>com.google.ortools.graph;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html"> 11</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html">MaxFlow</a> {</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; <span class="keyword">private</span> <span class="keyword">transient</span> <span class="keywordtype">long</span> swigCPtr;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; <span class="keyword">protected</span> <span class="keyword">transient</span> <span class="keywordtype">boolean</span> swigCMemOwn;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#ad82f18129cbdcf8a27d52bcab258b941"> 15</a></span>&#160; <span class="keyword">protected</span> <a class="code" href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#ad82f18129cbdcf8a27d52bcab258b941">MaxFlow</a>(<span class="keywordtype">long</span> cPtr, <span class="keywordtype">boolean</span> cMemoryOwn) {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; swigCMemOwn = cMemoryOwn;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; swigCPtr = cPtr;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; }</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="keyword">protected</span> <span class="keyword">static</span> <span class="keywordtype">long</span> getCPtr(<a class="code" href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html">MaxFlow</a> obj) {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keywordflow">return</span> (obj == <span class="keyword">null</span>) ? 0 : obj.swigCPtr;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; }</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; @SuppressWarnings(<span class="stringliteral">&quot;deprecation&quot;</span>)</div><div class="line">
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_a4545e1e65c2ea913eea482ac27b02b2f"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#a4545e1e65c2ea913eea482ac27b02b2f">com.google.ortools.graph.MaxFlow.getOptimalFlow</a></div><div class="ttdeci">long getOptimalFlow()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00071">MaxFlow.java:71</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_a417cae0d9ef89a885c8987de6bc6ca8c"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#a417cae0d9ef89a885c8987de6bc6ca8c">com.google.ortools.graph.MaxFlow.getNumNodes</a></div><div class="ttdeci">int getNumNodes()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00047">MaxFlow.java:47</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_ae316669bcc107981f363cd862956dc0d"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#ae316669bcc107981f363cd862956dc0d">com.google.ortools.graph.MaxFlow.setArcCapacity</a></div><div class="ttdeci">void setArcCapacity(int arc, long capacity)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00079">MaxFlow.java:79</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_ab50d9dac8c3c9f6a47ff2a322e15b9c5"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#ab50d9dac8c3c9f6a47ff2a322e15b9c5">com.google.ortools.graph.MaxFlow.MaxFlow</a></div><div class="ttdeci">MaxFlow()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00039">MaxFlow.java:39</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_aa4a1880768573de76a43a5e05129a7b1"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#aa4a1880768573de76a43a5e05129a7b1">com.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_8java_source.html#l00043">MaxFlow.java:43</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_a77d24d6e689c6b946d76a0b12ca7347b"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#a77d24d6e689c6b946d76a0b12ca7347b">com.google.ortools.graph.MaxFlow.getCapacity</a></div><div class="ttdeci">long getCapacity(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00063">MaxFlow.java:63</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_a82acd0a77734ec8de5221fb9a6b4bd18"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#a82acd0a77734ec8de5221fb9a6b4bd18">com.google.ortools.graph.MaxFlow.getNumArcs</a></div><div class="ttdeci">int getNumArcs()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00051">MaxFlow.java:51</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html">com.google.ortools.graph.MaxFlow.Status</a></div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00083">MaxFlow.java:83</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html_a6ee05bd289e9c94659b32df1ddf569fc"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html#a6ee05bd289e9c94659b32df1ddf569fc">com.google.ortools.graph.MaxFlow.Status.swigValue</a></div><div class="ttdeci">final int swigValue()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00089">MaxFlow.java:89</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_aeb7b0f03ef6eadf8172a657c31a7a89c"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#aeb7b0f03ef6eadf8172a657c31a7a89c">com.google.ortools.graph.MaxFlow.getFlow</a></div><div class="ttdeci">long getFlow(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00075">MaxFlow.java:75</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html_a8d021b9754de129689c78b82263c18b4"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html#a8d021b9754de129689c78b82263c18b4">com.google.ortools.graph.MaxFlow.Status.BAD_INPUT</a></div><div class="ttdeci">BAD_INPUT</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00086">MaxFlow.java:86</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_a1d3df7e36d43babfeefff298b7f7ca7f"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#a1d3df7e36d43babfeefff298b7f7ca7f">com.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_8java_source.html#l00067">MaxFlow.java:67</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html_a23557046d218f7645297fbb48ced2a53"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html#a23557046d218f7645297fbb48ced2a53">com.google.ortools.graph.MaxFlow.Status.swigToEnum</a></div><div class="ttdeci">static Status swigToEnum(int swigValue)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00093">MaxFlow.java:93</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html_aa3378f9f010f20a8c192abdc01c9ca4a"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html#aa3378f9f010f20a8c192abdc01c9ca4a">com.google.ortools.graph.MaxFlow.Status.BAD_RESULT</a></div><div class="ttdeci">BAD_RESULT</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00087">MaxFlow.java:87</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html_a3d3396ee4ca20facf18be311a4d93aed"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html#a3d3396ee4ca20facf18be311a4d93aed">com.google.ortools.graph.MaxFlow.Status.POSSIBLE_OVERFLOW</a></div><div class="ttdeci">POSSIBLE_OVERFLOW</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00085">MaxFlow.java:85</a></div></div>
2019-06-13 02:45:44 +02:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_ad82f18129cbdcf8a27d52bcab258b941"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#ad82f18129cbdcf8a27d52bcab258b941">com.google.ortools.graph.MaxFlow.MaxFlow</a></div><div class="ttdeci">MaxFlow(long cPtr, boolean cMemoryOwn)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00015">MaxFlow.java:15</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html">com.google.ortools.graph.MaxFlow</a></div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00011">MaxFlow.java:11</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status_html_aef2051b1577773dba4ab35206ffd512b"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_1_1Status.html#aef2051b1577773dba4ab35206ffd512b">com.google.ortools.graph.MaxFlow.Status.OPTIMAL</a></div><div class="ttdeci">OPTIMAL</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00084">MaxFlow.java:84</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow_html_a52828a061cb88fa128fdcf6678e31325"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1graph_1_1MaxFlow.html#a52828a061cb88fa128fdcf6678e31325">com.google.ortools.graph.MaxFlow.getTail</a></div><div class="ttdeci">int getTail(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8java_source.html#l00055">MaxFlow.java:55</a></div></div>
2019-06-13 02:45:44 +02:00
</div><!-- fragment --></div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
2019-06-13 02:45:44 +02:00
</html>