public class MaxFlow
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MaxFlow.Status |
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
MaxFlow() |
protected |
MaxFlow(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
int |
addArcWithCapacity(int tail,
int head,
long capacity) |
void |
delete() |
protected void |
finalize() |
long |
getCapacity(int arc) |
protected static long |
getCPtr(MaxFlow obj) |
long |
getFlow(int arc) |
int |
getHead(int arc) |
int |
getNumArcs() |
int |
getNumNodes() |
long |
getOptimalFlow() |
int |
getTail(int arc) |
void |
setArcCapacity(int arc,
long capacity) |
MaxFlow.Status |
solve(int source,
int sink) |
protected static long |
swigRelease(MaxFlow obj) |
protected MaxFlow(long cPtr, boolean cMemoryOwn)
public MaxFlow()
protected static long getCPtr(MaxFlow obj)
protected static long swigRelease(MaxFlow obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public int addArcWithCapacity(int tail, int head, long capacity)
public int getNumNodes()
public int getNumArcs()
public int getTail(int arc)
public int getHead(int arc)
public long getCapacity(int arc)
public MaxFlow.Status solve(int source, int sink)
public long getOptimalFlow()
public long getFlow(int arc)
public void setArcCapacity(int arc, long capacity)
Copyright © 2025. All rights reserved.