|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MinCostFlowAlg
A min-cost flow algorithm (with positive flows in the range 0 ... capacity).
Method Summary | |
---|---|
double |
getTotalCost()
Calculate the total cost of the flow. |
void |
setEdgeWeightsMap(FixedDoubleEdgeMap edgeWeights)
Set the cost of one unit of flow for each edge. |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.flow.FeasibleFlowAlg |
---|
isFeasible, setInflowMap |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.flow.AbstractFlowAlg |
---|
getFlowMap, setEdgeCapacityMap |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.GraphAlgorithm |
---|
getGraph, run, setGraph |
Method Detail |
---|
void setEdgeWeightsMap(FixedDoubleEdgeMap edgeWeights)
edgeWeights
- a map containing the cost of each edge in the graphdouble getTotalCost()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |