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 java.lang.Object implements FlowAlgorithm.Flow<E>
Default implementation of
FlowAlgorithm.Flow
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.util.Map<E,java.lang.Double>
getFlowMap()
Returns a mapping from the network flow edges to the corresponding flow values.
-
Constructor Details
-
FlowImpl
Constructs a new flow- Parameters:
flowMap
- the mapping defining the flow on the network
-
-
Method Details
-
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.
-