Package org.jgrapht.alg.interfaces
Class MinimumCostFlowAlgorithm.MinimumCostFlowImpl<E>
- java.lang.Object
-
- org.jgrapht.alg.interfaces.FlowAlgorithm.FlowImpl<E>
-
- org.jgrapht.alg.interfaces.MinimumCostFlowAlgorithm.MinimumCostFlowImpl<E>
-
- Type Parameters:
E
- graph edge type
- All Implemented Interfaces:
FlowAlgorithm.Flow<E>
,MinimumCostFlowAlgorithm.MinimumCostFlow<E>
- Enclosing interface:
- MinimumCostFlowAlgorithm<V,E>
public static class MinimumCostFlowAlgorithm.MinimumCostFlowImpl<E> extends FlowAlgorithm.FlowImpl<E> implements MinimumCostFlowAlgorithm.MinimumCostFlow<E>
Default implementation of theMinimumCostFlowAlgorithm.MinimumCostFlow
-
-
Constructor Summary
Constructors Constructor Description MinimumCostFlowImpl(double cost, java.util.Map<E,java.lang.Double> flowMap)
Constructs a new instance of minimum cost flow
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCost()
Returns the cost of the flow-
Methods inherited from class org.jgrapht.alg.interfaces.FlowAlgorithm.FlowImpl
getFlowMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.alg.interfaces.FlowAlgorithm.Flow
getFlow, getFlowMap
-
-
-
-
Constructor Detail
-
MinimumCostFlowImpl
public MinimumCostFlowImpl(double cost, java.util.Map<E,java.lang.Double> flowMap)
Constructs a new instance of minimum cost flow- Parameters:
cost
- the cost of the flowflowMap
- the mapping defining the flow on the network
-
-
Method Detail
-
getCost
public double getCost()
Returns the cost of the flow- Specified by:
getCost
in interfaceMinimumCostFlowAlgorithm.MinimumCostFlow<E>
- Returns:
- the cost of the flow
-
-