13public class MinCostFlow : MinCostFlowBase {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
20 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
MinCostFlow obj) {
21 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
MinCostFlow obj) {
27 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
28 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
29 obj.swigCMemOwn =
false;
33 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
37 protected override void Dispose(
bool disposing) {
39 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
46 base.Dispose(disposing);
50 public MinCostFlow(
int reserve_num_nodes,
int reserve_num_arcs) : this(operations_research_graphPINVOKE.new_MinCostFlow__SWIG_0(reserve_num_nodes, reserve_num_arcs), true) {
88 public long Flow(
int arc) {
103 public int Tail(
int arc) {
108 public int Head(
int arc) {
118 public long Supply(
int node) {