V
- the graph vertex typeE
- the graph edge typepublic interface FlowAlgorithm<V,E>
Modifier and Type | Interface and Description |
---|---|
static interface |
FlowAlgorithm.Flow<E>
Represents a flow.
|
static class |
FlowAlgorithm.FlowImpl<E>
Default implementation of
FlowAlgorithm.Flow |
Modifier and Type | Method and Description |
---|---|
default FlowAlgorithm.Flow |
getFlow()
Result object of a flow algorithm
|
V |
getFlowDirection(E edge)
For the specified
edge $(u, v)$ returns vertex $v$ if the flow goes from $u$ to $v$,
or returns vertex $u$ otherwise. |
Map<E,Double> |
getFlowMap()
Returns a read-only mapping from edges to the corresponding flow values.
|
default FlowAlgorithm.Flow getFlow()
Map<E,Double> getFlowMap()
V getFlowDirection(E edge)
edge
$(u, v)$ returns vertex $v$ if the flow goes from $u$ to $v$,
or returns vertex $u$ otherwise. For directed flow networks the result is always the head of
the specified arc.
Note: not all flow algorithms may support undirected graphs.
edge
- an edge from the specified flow networkedge
Copyright © 2019. All rights reserved.