| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.opengve.bridge.algorithms.directed.ExtractFlow<V,A>
public abstract class ExtractFlow<V,A extends Arc<V>>
This class extract STFlow from a single source multiple destination flow. You
 must note that each call to getFlowTo(Object) modify the initial
 flow.
 
 You must initialize the AbstractScalar used as
 infinite value with setInfinity(AbstractScalar).
| Constructor Summary | |
|---|---|
ExtractFlow(Graph<V,A> subGraph,
            V source,
            Flow<V,A> flow)
Constructor.  | 
|
| Method Summary | |
|---|---|
protected abstract  Path<V,A> | 
createDirectedPath()
Give a new empty directed path.  | 
protected abstract  Flow<V,A> | 
createFlow(Graph<V,A> g)
Create a new empty flow.  | 
 Flow<V,A> | 
getFlowTo(V destination)
Give the flow from source to destination.  | 
 void | 
setInfinity(AbstractScalar infinity)
Set the AbstractScalar used to represent Infinity. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ExtractFlow(Graph<V,A> subGraph,
                   V source,
                   Flow<V,A> flow)
subGraph - The subgraph containing all and only edge with flow.source - The source of the flow.flow - The flow.| Method Detail | 
|---|
protected abstract Flow<V,A> createFlow(Graph<V,A> g)
g - The graph on which is define the flow.
protected abstract Path<V,A> createDirectedPath()
public void setInfinity(AbstractScalar infinity)
AbstractScalar used to represent Infinity.
infinity - The AbstractScalar as Infinity.public Flow<V,A> getFlowTo(V destination)
destination - The destination of the computed flow.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||