- 
- Type Parameters:
- V- the graph vertex type
- E- the graph edge type
 - All Superinterfaces:
- FlowAlgorithm<V,E>
 - All Known Implementing Classes:
- DinicMFImpl,- EdmondsKarpMFImpl,- GusfieldEquivalentFlowTree,- GusfieldGomoryHuCutTree,- MaximumFlowAlgorithmBase,- PushRelabelMFImpl
 
 public interface MaximumFlowAlgorithm<V,E> extends FlowAlgorithm<V,E> Allows to derive maximum-flow from the supplied flow network- Author:
- Alexey Kudinkin, Joris Kinable
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceMaximumFlowAlgorithm.MaximumFlow<E>A maximum flowstatic classMaximumFlowAlgorithm.MaximumFlowImpl<E>Default implementation of the maximum flow- 
Nested classes/interfaces inherited from interface org.jgrapht.alg.interfaces.FlowAlgorithmFlowAlgorithm.Flow<E>, FlowAlgorithm.FlowImpl<E>
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MaximumFlowAlgorithm.MaximumFlow<E>getMaximumFlow(V source, V sink)Sets current source tosource, current sink tosink, then calculates maximum flow fromsourcetosink.default doublegetMaximumFlowValue(V source, V sink)Sets current source tosource, current sink tosink, then calculates maximum flow fromsourcetosink.- 
Methods inherited from interface org.jgrapht.alg.interfaces.FlowAlgorithmgetFlow, getFlowDirection, getFlowMap
 
- 
 
- 
- 
- 
Method Detail- 
getMaximumFlowMaximumFlowAlgorithm.MaximumFlow<E> getMaximumFlow(V source, V sink) Sets current source tosource, current sink tosink, then calculates maximum flow fromsourcetosink. Returns an object containing detailed information about the flow.- Parameters:
- source- source of the flow inside the network
- sink- sink of the flow inside the network
- Returns:
- maximum flow
 
 - 
getMaximumFlowValuedefault double getMaximumFlowValue(V source, V sink) Sets current source tosource, current sink tosink, then calculates maximum flow fromsourcetosink. Note, thatsourceandsinkmust be vertices of thenetworkpassed to the constructor, and they must be different.- Parameters:
- source- source vertex
- sink- sink vertex
- Returns:
- the value of the maximum flow
 
 
- 
 
-