|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MultiFlow<V,A extends Arc<V>>
This interface is used to manage multi-flow. This multi-flow is build by
adding various Flow to this one.
| Method Summary | |
|---|---|
void |
addFlow(Flow<V,A> f)
Add a given flow to this multi-flow. |
java.util.Iterator<V> |
destinationIterator()
Give an iterator on the destination vertex of this multi-flow. |
java.util.Iterator<A> |
edgeWithFlowIterator()
Give a Iterator on all edges with a flow not null. |
AbstractScalar |
getFlow(A e)
Give the quantity of flow associated with an edge. |
Flow<V,A> |
getFlow(V source,
V destination)
Return the flow between two vertices. |
AbstractScalar |
getIncomingFlow(V v)
Return the quantity of flow incoming to vertex v. |
AbstractScalar |
getOutgoingFlow(V v)
Return the quantity of flow outgoing from vertex v. |
Graph<V,A> |
getSupportingGraph()
Give the supporting graph associated with this flow. |
java.util.Iterator<V> |
sourceIterator()
Give an iterator on the source vertex of this multi-flow. |
boolean |
verify()
Verify the coherence of the flow. |
| Method Detail |
|---|
void addFlow(Flow<V,A> f)
f - The flow to add.java.util.Iterator<V> sourceIterator()
java.util.Iterator<V> destinationIterator()
AbstractScalar getIncomingFlow(V v)
v - The vertex.
AbstractScalar getOutgoingFlow(V v)
v - The vertex.
AbstractScalar getFlow(A e)
e - The edge.
Flow<V,A> getFlow(V source,
V destination)
source - The source of the flowdestination - The destination of the flow
null if no flow
is define between this two vertices.java.util.Iterator<A> edgeWithFlowIterator()
Iterator on all edges with a flow not null.
Iterator over edges with flow.Graph<V,A> getSupportingGraph()
boolean verify()
MultiFlow must define exactly
what this method do.
true if this flow is coherent with verifications and
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||