V
- the graph vertex typeE
- the graph edge typepublic interface MaximumFlowAlgorithm<V,E> extends FlowAlgorithm<V,E>
Modifier and Type | Interface and Description |
---|---|
static interface |
MaximumFlowAlgorithm.MaximumFlow<E>
A maximum flow
|
static class |
MaximumFlowAlgorithm.MaximumFlowImpl<E>
Default implementation of the maximum flow
|
FlowAlgorithm.Flow<E>, FlowAlgorithm.FlowImpl<E>
Modifier and Type | Method and Description |
---|---|
MaximumFlowAlgorithm.MaximumFlow<E> |
getMaximumFlow(V source,
V sink)
Sets current source to source, current sink to sink, then calculates
maximum flow from source to sink.
|
default double |
getMaximumFlowValue(V source,
V sink)
Sets current source to source, current sink to sink, then calculates
maximum flow from source to sink.
|
getFlow, getFlowDirection, getFlowMap
MaximumFlowAlgorithm.MaximumFlow<E> getMaximumFlow(V source, V sink)
source
- source of the flow inside the networksink
- sink of the flow inside the networkdefault double getMaximumFlowValue(V source, V sink)
source
- source vertexsink
- sink vertexCopyright © 2019. All rights reserved.