Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.graph.MaxFlow Class Reference

Classes

enum  Status
 

Public Member Functions

synchronized void delete ()
 
 MaxFlow ()
 
int addArcWithCapacity (int tail, int head, long capacity)
 
int getNumNodes ()
 
int getNumArcs ()
 
int getTail (int arc)
 
int getHead (int arc)
 
long getCapacity (int arc)
 
MaxFlow.Status solve (int source, int sink)
 
long getOptimalFlow ()
 
long getFlow (int arc)
 
void setArcCapacity (int arc, long capacity)
 

Protected Member Functions

 MaxFlow (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (MaxFlow obj)
 
static long swigRelease (MaxFlow obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

Definition at line 11 of file MaxFlow.java.

Constructor & Destructor Documentation

◆ MaxFlow() [1/2]

com.google.ortools.graph.MaxFlow.MaxFlow ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 15 of file MaxFlow.java.

◆ MaxFlow() [2/2]

com.google.ortools.graph.MaxFlow.MaxFlow ( )

Definition at line 51 of file MaxFlow.java.

Member Function Documentation

◆ addArcWithCapacity()

int com.google.ortools.graph.MaxFlow.addArcWithCapacity ( int tail,
int head,
long capacity )

Definition at line 55 of file MaxFlow.java.

◆ delete()

synchronized void com.google.ortools.graph.MaxFlow.delete ( )

Definition at line 41 of file MaxFlow.java.

◆ finalize()

void com.google.ortools.graph.MaxFlow.finalize ( )
protected

Definition at line 37 of file MaxFlow.java.

◆ getCapacity()

long com.google.ortools.graph.MaxFlow.getCapacity ( int arc)

Definition at line 75 of file MaxFlow.java.

◆ getCPtr()

static long com.google.ortools.graph.MaxFlow.getCPtr ( MaxFlow obj)
staticprotected

Definition at line 20 of file MaxFlow.java.

◆ getFlow()

long com.google.ortools.graph.MaxFlow.getFlow ( int arc)

Definition at line 87 of file MaxFlow.java.

◆ getHead()

int com.google.ortools.graph.MaxFlow.getHead ( int arc)

Definition at line 71 of file MaxFlow.java.

◆ getNumArcs()

int com.google.ortools.graph.MaxFlow.getNumArcs ( )

Definition at line 63 of file MaxFlow.java.

◆ getNumNodes()

int com.google.ortools.graph.MaxFlow.getNumNodes ( )

Definition at line 59 of file MaxFlow.java.

◆ getOptimalFlow()

long com.google.ortools.graph.MaxFlow.getOptimalFlow ( )

Definition at line 83 of file MaxFlow.java.

◆ getTail()

int com.google.ortools.graph.MaxFlow.getTail ( int arc)

Definition at line 67 of file MaxFlow.java.

◆ setArcCapacity()

void com.google.ortools.graph.MaxFlow.setArcCapacity ( int arc,
long capacity )

Definition at line 91 of file MaxFlow.java.

◆ solve()

MaxFlow.Status com.google.ortools.graph.MaxFlow.solve ( int source,
int sink )

Definition at line 79 of file MaxFlow.java.

◆ swigRelease()

static long com.google.ortools.graph.MaxFlow.swigRelease ( MaxFlow obj)
staticprotected

Definition at line 24 of file MaxFlow.java.

Member Data Documentation

◆ swigCMemOwn

transient boolean com.google.ortools.graph.MaxFlow.swigCMemOwn
protected

Definition at line 13 of file MaxFlow.java.


The documentation for this class was generated from the following file: