OR-Tools  9.2
graph_csharp_wrap.cc
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.1
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 
12 #ifndef SWIGCSHARP
13 #define SWIGCSHARP
14 #endif
15 
16 
17 
18 #ifdef __cplusplus
19 /* SwigValueWrapper is described in swig.swg */
20 template<typename T> class SwigValueWrapper {
21  struct SwigMovePointer {
22  T *ptr;
23  SwigMovePointer(T *p) : ptr(p) { }
24  ~SwigMovePointer() { delete ptr; }
25  SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
26  } pointer;
27  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
28  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
29 public:
30  SwigValueWrapper() : pointer(0) { }
31  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
32  operator T&() const { return *pointer.ptr; }
33  T *operator&() { return pointer.ptr; }
34 };
35 
36 template <typename T> T SwigValueInit() {
37  return T();
38 }
39 #endif
40 
41 /* -----------------------------------------------------------------------------
42  * This section contains generic SWIG labels for method/variable
43  * declarations/attributes, and other compiler dependent labels.
44  * ----------------------------------------------------------------------------- */
45 
46 /* template workaround for compilers that cannot correctly implement the C++ standard */
47 #ifndef SWIGTEMPLATEDISAMBIGUATOR
48 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
49 # define SWIGTEMPLATEDISAMBIGUATOR template
50 # elif defined(__HP_aCC)
51 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
52 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
53 # define SWIGTEMPLATEDISAMBIGUATOR template
54 # else
55 # define SWIGTEMPLATEDISAMBIGUATOR
56 # endif
57 #endif
58 
59 /* inline attribute */
60 #ifndef SWIGINLINE
61 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
62 # define SWIGINLINE inline
63 # else
64 # define SWIGINLINE
65 # endif
66 #endif
67 
68 /* attribute recognised by some compilers to avoid 'unused' warnings */
69 #ifndef SWIGUNUSED
70 # if defined(__GNUC__)
71 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
72 # define SWIGUNUSED __attribute__ ((__unused__))
73 # else
74 # define SWIGUNUSED
75 # endif
76 # elif defined(__ICC)
77 # define SWIGUNUSED __attribute__ ((__unused__))
78 # else
79 # define SWIGUNUSED
80 # endif
81 #endif
82 
83 #ifndef SWIG_MSC_UNSUPPRESS_4505
84 # if defined(_MSC_VER)
85 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
86 # endif
87 #endif
88 
89 #ifndef SWIGUNUSEDPARM
90 # ifdef __cplusplus
91 # define SWIGUNUSEDPARM(p)
92 # else
93 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
94 # endif
95 #endif
96 
97 /* internal SWIG method */
98 #ifndef SWIGINTERN
99 # define SWIGINTERN static SWIGUNUSED
100 #endif
101 
102 /* internal inline SWIG method */
103 #ifndef SWIGINTERNINLINE
104 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
105 #endif
106 
107 /* exporting methods */
108 #if defined(__GNUC__)
109 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
110 # ifndef GCC_HASCLASSVISIBILITY
111 # define GCC_HASCLASSVISIBILITY
112 # endif
113 # endif
114 #endif
115 
116 #ifndef SWIGEXPORT
117 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118 # if defined(STATIC_LINKED)
119 # define SWIGEXPORT
120 # else
121 # define SWIGEXPORT __declspec(dllexport)
122 # endif
123 # else
124 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
125 # define SWIGEXPORT __attribute__ ((visibility("default")))
126 # else
127 # define SWIGEXPORT
128 # endif
129 # endif
130 #endif
131 
132 /* calling conventions for Windows */
133 #ifndef SWIGSTDCALL
134 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
135 # define SWIGSTDCALL __stdcall
136 # else
137 # define SWIGSTDCALL
138 # endif
139 #endif
140 
141 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
142 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
143 # define _CRT_SECURE_NO_DEPRECATE
144 #endif
145 
146 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
147 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
148 # define _SCL_SECURE_NO_DEPRECATE
149 #endif
150 
151 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
152 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
153 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
154 #endif
155 
156 /* Intel's compiler complains if a variable which was never initialised is
157  * cast to void, which is a common idiom which we use to indicate that we
158  * are aware a variable isn't used. So we just silence that warning.
159  * See: https://github.com/swig/swig/issues/192 for more discussion.
160  */
161 #ifdef __INTEL_COMPILER
162 # pragma warning disable 592
163 #endif
164 
165 
166 #include <stdlib.h>
167 #include <string.h>
168 #include <stdio.h>
169 
170 
171 /* Support for throwing C# exceptions from C/C++. There are two types:
172  * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
173 typedef enum {
186 
187 typedef enum {
192 
193 typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
194 typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
195 
196 typedef struct {
200 
201 typedef struct {
205 
213  { SWIG_CSharpIOException, NULL },
218 };
219 
224 };
225 
228  if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
230  }
231  callback(msg);
232 }
233 
234 static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
236  if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
238  }
239  callback(msg, param_name);
240 }
241 
242 
243 #ifdef __cplusplus
244 extern "C"
245 #endif
247  SWIG_CSharpExceptionCallback_t applicationCallback,
248  SWIG_CSharpExceptionCallback_t arithmeticCallback,
249  SWIG_CSharpExceptionCallback_t divideByZeroCallback,
250  SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback,
251  SWIG_CSharpExceptionCallback_t invalidCastCallback,
252  SWIG_CSharpExceptionCallback_t invalidOperationCallback,
254  SWIG_CSharpExceptionCallback_t nullReferenceCallback,
255  SWIG_CSharpExceptionCallback_t outOfMemoryCallback,
256  SWIG_CSharpExceptionCallback_t overflowCallback,
257  SWIG_CSharpExceptionCallback_t systemCallback) {
269 }
270 
271 #ifdef __cplusplus
272 extern "C"
273 #endif
276  SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback,
277  SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) {
281 }
282 
283 
284 /* Callback for returning strings to C# without leaking memory */
285 typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
287 
288 
289 #ifdef __cplusplus
290 extern "C"
291 #endif
294 }
295 
296 
297 /* Contract support */
298 
299 #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else
300 
301 
302 #include <stdint.h> // Use the C99 official header
303 
304 
305 #define SWIGWORDSIZE64
306 #ifndef LONG_MAX
307 #include <limits.h>
308 #endif
309 #if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX)
310 # error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
311 #endif
312 
313 
314 #include <cstdint>
315 #include <string>
316 #include <vector>
317 
318 #include "ortools/base/basictypes.h"
319 
320 
321 #include <string>
322 
323 
325 #include "ortools/graph/max_flow.h"
327 
328 
329 #ifdef __cplusplus
330 extern "C" {
331 #endif
332 
334  void * jresult ;
336 
338  jresult = (void *)result;
339  return jresult;
340 }
341 
342 
343 SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_AddArcWithCapacity___(void * jarg1, int jarg2, int jarg3, long long jarg4) {
344  int jresult ;
350 
351  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
352  arg2 = (operations_research::NodeIndex)jarg2;
353  arg3 = (operations_research::NodeIndex)jarg3;
354  arg4 = (operations_research::FlowQuantity)jarg4;
355  result = (operations_research::ArcIndex)(arg1)->AddArcWithCapacity(arg2,arg3,arg4);
356  jresult = result;
357  return jresult;
358 }
359 
360 
362  int jresult ;
365 
366  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
367  result = (operations_research::NodeIndex)((operations_research::SimpleMaxFlow const *)arg1)->NumNodes();
368  jresult = result;
369  return jresult;
370 }
371 
372 
374  int jresult ;
377 
378  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
379  result = (operations_research::ArcIndex)((operations_research::SimpleMaxFlow const *)arg1)->NumArcs();
380  jresult = result;
381  return jresult;
382 }
383 
384 
386  int jresult ;
390 
391  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
392  arg2 = (operations_research::ArcIndex)jarg2;
393  result = (operations_research::NodeIndex)((operations_research::SimpleMaxFlow const *)arg1)->Tail(arg2);
394  jresult = result;
395  return jresult;
396 }
397 
398 
400  int jresult ;
404 
405  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
406  arg2 = (operations_research::ArcIndex)jarg2;
407  result = (operations_research::NodeIndex)((operations_research::SimpleMaxFlow const *)arg1)->Head(arg2);
408  jresult = result;
409  return jresult;
410 }
411 
412 
414  long long jresult ;
418 
419  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
420  arg2 = (operations_research::ArcIndex)jarg2;
421  result = (operations_research::FlowQuantity)((operations_research::SimpleMaxFlow const *)arg1)->Capacity(arg2);
422  jresult = result;
423  return jresult;
424 }
425 
426 
427 SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_Solve___(void * jarg1, int jarg2, int jarg3) {
428  int jresult ;
433 
434  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
435  arg2 = (operations_research::NodeIndex)jarg2;
436  arg3 = (operations_research::NodeIndex)jarg3;
437  result = (operations_research::SimpleMaxFlow::Status)(arg1)->Solve(arg2,arg3);
438  jresult = (int)result;
439  return jresult;
440 }
441 
442 
444  long long jresult ;
447 
448  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
449  result = (operations_research::FlowQuantity)((operations_research::SimpleMaxFlow const *)arg1)->OptimalFlow();
450  jresult = result;
451  return jresult;
452 }
453 
454 
456  long long jresult ;
460 
461  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
462  arg2 = (operations_research::ArcIndex)jarg2;
463  result = (operations_research::FlowQuantity)((operations_research::SimpleMaxFlow const *)arg1)->Flow(arg2);
464  jresult = result;
465  return jresult;
466 }
467 
468 
471 
472  arg1 = (operations_research::SimpleMaxFlow *)jarg1;
473  delete arg1;
474 }
475 
476 
478  void * jresult ;
480 
482  jresult = (void *)result;
483  return jresult;
484 }
485 
486 
489 
490  arg1 = (operations_research::MinCostFlowBase *)jarg1;
491  delete arg1;
492 }
493 
494 
496  void * jresult ;
500 
501  arg1 = (operations_research::NodeIndex)jarg1;
502  arg2 = (operations_research::ArcIndex)jarg2;
504  jresult = (void *)result;
505  return jresult;
506 }
507 
508 
510  void * jresult ;
513 
514  arg1 = (operations_research::NodeIndex)jarg1;
516  jresult = (void *)result;
517  return jresult;
518 }
519 
520 
522  void * jresult ;
524 
526  jresult = (void *)result;
527  return jresult;
528 }
529 
530 
531 SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_AddArcWithCapacityAndUnitCost___(void * jarg1, int jarg2, int jarg3, long long jarg4, long long jarg5) {
532  int jresult ;
539 
541  arg2 = (operations_research::NodeIndex)jarg2;
542  arg3 = (operations_research::NodeIndex)jarg3;
543  arg4 = (operations_research::FlowQuantity)jarg4;
544  arg5 = (operations_research::CostValue)jarg5;
545  result = (operations_research::ArcIndex)(arg1)->AddArcWithCapacityAndUnitCost(arg2,arg3,arg4,arg5);
546  jresult = result;
547  return jresult;
548 }
549 
550 
555 
557  arg2 = (operations_research::NodeIndex)jarg2;
558  arg3 = (operations_research::FlowQuantity)jarg3;
559  (arg1)->SetNodeSupply(arg2,arg3);
560 }
561 
562 
564  int jresult ;
567 
570  jresult = (int)result;
571  return jresult;
572 }
573 
574 
576  int jresult ;
579 
582  jresult = (int)result;
583  return jresult;
584 }
585 
586 
588  long long jresult ;
591 
593  result = (operations_research::CostValue)((operations_research::SimpleMinCostFlow const *)arg1)->OptimalCost();
594  jresult = result;
595  return jresult;
596 }
597 
598 
600  long long jresult ;
603 
605  result = (operations_research::FlowQuantity)((operations_research::SimpleMinCostFlow const *)arg1)->MaximumFlow();
606  jresult = result;
607  return jresult;
608 }
609 
610 
612  long long jresult ;
616 
618  arg2 = (operations_research::ArcIndex)jarg2;
620  jresult = result;
621  return jresult;
622 }
623 
624 
626  int jresult ;
629 
631  result = (operations_research::NodeIndex)((operations_research::SimpleMinCostFlow const *)arg1)->NumNodes();
632  jresult = result;
633  return jresult;
634 }
635 
636 
638  int jresult ;
641 
643  result = (operations_research::ArcIndex)((operations_research::SimpleMinCostFlow const *)arg1)->NumArcs();
644  jresult = result;
645  return jresult;
646 }
647 
648 
650  int jresult ;
654 
656  arg2 = (operations_research::ArcIndex)jarg2;
657  result = (operations_research::NodeIndex)((operations_research::SimpleMinCostFlow const *)arg1)->Tail(arg2);
658  jresult = result;
659  return jresult;
660 }
661 
662 
664  int jresult ;
668 
670  arg2 = (operations_research::ArcIndex)jarg2;
671  result = (operations_research::NodeIndex)((operations_research::SimpleMinCostFlow const *)arg1)->Head(arg2);
672  jresult = result;
673  return jresult;
674 }
675 
676 
678  long long jresult ;
682 
684  arg2 = (operations_research::ArcIndex)jarg2;
685  result = (operations_research::FlowQuantity)((operations_research::SimpleMinCostFlow const *)arg1)->Capacity(arg2);
686  jresult = result;
687  return jresult;
688 }
689 
690 
692  long long jresult ;
696 
698  arg2 = (operations_research::NodeIndex)jarg2;
699  result = (operations_research::FlowQuantity)((operations_research::SimpleMinCostFlow const *)arg1)->Supply(arg2);
700  jresult = result;
701  return jresult;
702 }
703 
704 
706  long long jresult ;
710 
712  arg2 = (operations_research::ArcIndex)jarg2;
713  result = (operations_research::CostValue)((operations_research::SimpleMinCostFlow const *)arg1)->UnitCost(arg2);
714  jresult = result;
715  return jresult;
716 }
717 
718 
721 
723  delete arg1;
724 }
725 
726 
728  void * jresult ;
730 
732  jresult = (void *)result;
733  return jresult;
734 }
735 
736 
737 SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_AddArcWithCost___(void * jarg1, int jarg2, int jarg3, long long jarg4) {
738  int jresult ;
744 
746  arg2 = (operations_research::NodeIndex)jarg2;
747  arg3 = (operations_research::NodeIndex)jarg3;
748  arg4 = (operations_research::CostValue)jarg4;
749  result = (operations_research::ArcIndex)(arg1)->AddArcWithCost(arg2,arg3,arg4);
750  jresult = result;
751  return jresult;
752 }
753 
754 
756  int jresult ;
759 
762  jresult = result;
763  return jresult;
764 }
765 
766 
768  int jresult ;
771 
774  jresult = result;
775  return jresult;
776 }
777 
778 
780  int jresult ;
784 
786  arg2 = (operations_research::ArcIndex)jarg2;
787  result = (operations_research::NodeIndex)((operations_research::SimpleLinearSumAssignment const *)arg1)->LeftNode(arg2);
788  jresult = result;
789  return jresult;
790 }
791 
792 
794  int jresult ;
798 
800  arg2 = (operations_research::ArcIndex)jarg2;
801  result = (operations_research::NodeIndex)((operations_research::SimpleLinearSumAssignment const *)arg1)->RightNode(arg2);
802  jresult = result;
803  return jresult;
804 }
805 
806 
808  long long jresult ;
812 
814  arg2 = (operations_research::ArcIndex)jarg2;
816  jresult = result;
817  return jresult;
818 }
819 
820 
822  int jresult ;
825 
828  jresult = (int)result;
829  return jresult;
830 }
831 
832 
834  long long jresult ;
837 
840  jresult = result;
841  return jresult;
842 }
843 
844 
846  int jresult ;
850 
852  arg2 = (operations_research::NodeIndex)jarg2;
853  result = (operations_research::NodeIndex)((operations_research::SimpleLinearSumAssignment const *)arg1)->RightMate(arg2);
854  jresult = result;
855  return jresult;
856 }
857 
858 
860  long long jresult ;
864 
866  arg2 = (operations_research::NodeIndex)jarg2;
867  result = (operations_research::CostValue)((operations_research::SimpleLinearSumAssignment const *)arg1)->AssignmentCost(arg2);
868  jresult = result;
869  return jresult;
870 }
871 
872 
875 
877  delete arg1;
878 }
879 
880 
882  return (operations_research::MinCostFlowBase *)jarg1;
883 }
884 
885 #ifdef __cplusplus
886 }
887 #endif
888 
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_LeftNode___(void *jarg1, int jarg2)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_Tail___(void *jarg1, int jarg2)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_Flow___(void *jarg1, int jarg2)
SWIG_CSharpExceptionCallback_t callback
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_new_MinCostFlowBase___()
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_new_LinearSumAssignment___()
void(SWIGSTDCALL * SWIG_CSharpExceptionCallback_t)(const char *)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_OptimalCost___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_NumNodes___(void *jarg1)
static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name)
static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback
#define SWIGEXPORT
SWIG_CSharpExceptionCodes
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_new_MinCostFlow__SWIG_1___(int jarg1)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_AssignmentCost___(void *jarg1, int jarg2)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_OptimalCost___(void *jarg1)
SWIG_CSharpExceptionArgumentCallback_t callback
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_Solve___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_AddArcWithCapacity___(void *jarg1, int jarg2, int jarg3, long long jarg4)
MPCallback * callback
#define SWIGSTDCALL
char *(SWIGSTDCALL * SWIG_CSharpStringHelperCallback)(const char *)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_NumNodes___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfGraph_delete_MaxFlow___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfGraph_delete_MinCostFlowBase___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_RightNode___(void *jarg1, int jarg2)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_Solve___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_Tail___(void *jarg1, int jarg2)
Status Solve(NodeIndex source, NodeIndex sink)
Definition: max_flow.cc:55
#define SWIGUNUSED
ArcIndex AddArcWithCapacity(NodeIndex tail, NodeIndex head, FlowQuantity capacity)
Definition: max_flow.cc:28
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_Capacity___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_operations_research_graph(SWIG_CSharpExceptionCallback_t applicationCallback, SWIG_CSharpExceptionCallback_t arithmeticCallback, SWIG_CSharpExceptionCallback_t divideByZeroCallback, SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, SWIG_CSharpExceptionCallback_t invalidCastCallback, SWIG_CSharpExceptionCallback_t invalidOperationCallback, SWIG_CSharpExceptionCallback_t ioCallback, SWIG_CSharpExceptionCallback_t nullReferenceCallback, SWIG_CSharpExceptionCallback_t outOfMemoryCallback, SWIG_CSharpExceptionCallback_t overflowCallback, SWIG_CSharpExceptionCallback_t systemCallback)
static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[]
void(SWIGSTDCALL * SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_NumArcs___(void *jarg1)
static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg)
static SWIG_CSharpException_t SWIG_csharp_exceptions[]
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_Capacity___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_operations_research_graph(SWIG_CSharpExceptionArgumentCallback_t argumentCallback, SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback)
SWIG_CSharpExceptionArgumentCodes
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_OptimalFlow___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_RightMate___(void *jarg1, int jarg2)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_AddArcWithCapacityAndUnitCost___(void *jarg1, int jarg2, int jarg3, long long jarg4, long long jarg5)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_NumNodes___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_operations_research_graph(SWIG_CSharpStringHelperCallback callback)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfGraph_delete_MinCostFlow___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_Head___(void *jarg1, int jarg2)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_UnitCost___(void *jarg1, int jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_new_MinCostFlow__SWIG_0___(int jarg1, int jarg2)
ArcIndex AddArcWithCost(NodeIndex left_node, NodeIndex right_node, CostValue cost)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_Supply___(void *jarg1, int jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_new_MaxFlow___()
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_new_MinCostFlow__SWIG_2___()
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_Flow___(void *jarg1, int jarg2)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_MaximumFlow___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_Head___(void *jarg1, int jarg2)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_Solve___(void *jarg1)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_Cost___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfGraph_delete_LinearSumAssignment___(void *jarg1)
SWIGEXPORT operations_research::MinCostFlowBase *SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_SWIGUpcast___(operations_research::SimpleMinCostFlow *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_SolveMaxFlowWithMinCost___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MaxFlow_NumArcs___(void *jarg1)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_LinearSumAssignment_AddArcWithCost___(void *jarg1, int jarg2, int jarg3, long long jarg4)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_SetNodeSupply___(void *jarg1, int jarg2, long long jarg3)
SWIG_CSharpExceptionArgumentCodes
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfGraph_MinCostFlow_NumArcs___(void *jarg1)
ArcIndex AddArcWithCapacityAndUnitCost(NodeIndex tail, NodeIndex head, FlowQuantity capacity, CostValue unit_cost)