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 the
MinimumCostFlowAlgorithm.MinimumCostFlow-
Field Summary
FieldsModifier and TypeFieldDescription(package private) doubleThe cost of the flow defined by the mappingflowMap -
Constructor Summary
ConstructorsConstructorDescriptionMinimumCostFlowImpl(double cost, Map<E, Double> flowMap) Constructs a new instance of minimum cost flow -
Method Summary
Methods inherited from class FlowAlgorithm.FlowImpl
getFlowMapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlowAlgorithm.Flow
getFlow, getFlowMap
-
Field Details
-
cost
double costThe cost of the flow defined by the mappingflowMap
-
-
Constructor Details
-
MinimumCostFlowImpl
-
-
Method Details
-
getCost
public double getCost()Returns the cost of the flow- Specified by:
getCostin interfaceMinimumCostFlowAlgorithm.MinimumCostFlow<E>- Returns:
- the cost of the flow
-