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 |
---|---|
default double |
calculateMaximumFlow(V source,
V sink)
Deprecated.
replaced by @link{getMaximumFlowValue}
|
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()
Deprecated.
method has been removed
|
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 network@Deprecated default double calculateMaximumFlow(V source, V sink)
source
- source vertexsink
- sink vertexdefault double getMaximumFlowValue(V source, V sink)
source
- source vertexsink
- sink vertex@Deprecated default double getMaximumFlowValue()
Copyright © 2018. All rights reserved.