Package org.jgrapht.alg.interfaces
Class FlowAlgorithm.FlowImpl<E>
- java.lang.Object
-
- org.jgrapht.alg.interfaces.FlowAlgorithm.FlowImpl<E>
-
- Type Parameters:
E
- graph edge type
- All Implemented Interfaces:
FlowAlgorithm.Flow<E>
- Direct Known Subclasses:
MaximumFlowAlgorithm.MaximumFlowImpl
,MinimumCostFlowAlgorithm.MinimumCostFlowImpl
- Enclosing interface:
- FlowAlgorithm<V,E>
public static class FlowAlgorithm.FlowImpl<E> extends Object implements FlowAlgorithm.Flow<E>
Default implementation ofFlowAlgorithm.Flow
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<E,Double>
getFlowMap()
Returns a mapping from the network flow edges to the corresponding flow values.-
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
-
-
-
-
Method Detail
-
getFlowMap
public Map<E,Double> getFlowMap()
Returns a mapping from the network flow edges to the corresponding flow values. The mapping contains all edges of the flow network regardless of whether there is a non-zero flow on an edge or not.- Specified by:
getFlowMap
in interfaceFlowAlgorithm.Flow<E>
- Returns:
- a read-only map that defines a feasible flow.
-
-