|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.graph.decorators.AbstractDecoratedGraph
net.sourceforge.combean.graph.decorators.ResidualNetworkGraph
public class ResidualNetworkGraph
Decorator which generates the residual graph for a given graph which must have the DirectedEdgeNeighborhoodGraphProp.
| Field Summary | |
|---|---|
static byte |
INCOMING_RESIDUAL_EDGE
|
static byte |
OUTGOING_RESIDUAL_EDGE
|
| Constructor Summary | |
|---|---|
ResidualNetworkGraph(DirectedEdgeNeighborhoodGraphProp origNeigh)
Constructor. |
|
| Method Summary | |
|---|---|
protected FixedDoubleEdgeMap |
getEdgeCapacity()
|
Class |
getEdgeClass()
|
protected FixedDoubleEdgeMap |
getEdgeFlow()
|
Node |
getFirstNode(Edge e)
Return the first node of an edge. |
EdgeIterator |
getIncidentEdges(Node v)
Return an iterator for the local neighborhood of v |
EdgeIterator |
getIncomingEdges(Node v)
Get all incoming edges of a given node |
Node |
getOtherNode(Edge e,
Node v)
Given an edge and an incident node, return the other node of the edge |
EdgeIterator |
getOutgoingEdges(Node v)
Get all outgoing edges of a given node |
double |
getResidualCapacity(Edge e)
Get the residual capacity for an edge in the residual graph |
protected double |
getResidualCapacity(Edge origEdge,
Node v,
byte direction)
The residual capacity corresponding to an edge in the original graph. |
Node |
getSecondNode(Edge e)
Return the second node of an edge. |
DirectedEdgeNeighborhoodGraphProp |
getUnderlyingGraph()
|
boolean |
mayNestGraphProp(Class wantedProp)
Check whether a property may be provided to the user by the nested graph |
void |
setEdgeCapacity(FixedDoubleEdgeMap edgeCapacity)
|
void |
setEdgeFlow(FixedDoubleEdgeMap edgeFlow)
|
| Methods inherited from class net.sourceforge.combean.graph.decorators.AbstractDecoratedGraph |
|---|
getNestedGraph, getNodeClass, isModifiableGraphProp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.combean.interfaces.graph.Graph |
|---|
getNodeClass |
| Field Detail |
|---|
public static final byte INCOMING_RESIDUAL_EDGE
public static final byte OUTGOING_RESIDUAL_EDGE
| Constructor Detail |
|---|
public ResidualNetworkGraph(DirectedEdgeNeighborhoodGraphProp origNeigh)
origNeigh - the graph for which the residual graph shall be
constructed.| Method Detail |
|---|
public final void setEdgeCapacity(FixedDoubleEdgeMap edgeCapacity)
edgeCapacity - The edgeCapacity to set.public final void setEdgeFlow(FixedDoubleEdgeMap edgeFlow)
edgeFlow - The edgeFlow to set.protected final FixedDoubleEdgeMap getEdgeCapacity()
protected final FixedDoubleEdgeMap getEdgeFlow()
public final DirectedEdgeNeighborhoodGraphProp getUnderlyingGraph()
public final double getResidualCapacity(Edge e)
e - an edge in the residual graph
(must be of type ResidualNetworkEdge)
protected double getResidualCapacity(Edge origEdge,
Node v,
byte direction)
origEdge - the edge in the original graphv - an incident node of the given edgedirection - shall the residual edge be towards or away from v
public EdgeIterator getOutgoingEdges(Node v)
OutgoingEdgeNeighborhoodGraphProp
getOutgoingEdges in interface OutgoingEdgeNeighborhoodGraphProppublic EdgeIterator getIncomingEdges(Node v)
IncomingEdgeNeighborhoodGraphProp
getIncomingEdges in interface IncomingEdgeNeighborhoodGraphProppublic EdgeIterator getIncidentEdges(Node v)
NeighborhoodGraphProp
getIncidentEdges in interface NeighborhoodGraphPropv - the node for which the neighborhood shall be given.
public Node getFirstNode(Edge e)
NeighborhoodGraphProp
getFirstNode in interface NeighborhoodGraphPrope - the edge
public Node getSecondNode(Edge e)
NeighborhoodGraphProp
getSecondNode in interface NeighborhoodGraphPrope - the edge
public Node getOtherNode(Edge e,
Node v)
NeighborhoodGraphProp
getOtherNode in interface NeighborhoodGraphPrope - the given edgev - the give node
public boolean mayNestGraphProp(Class wantedProp)
NestedGraphProp
mayNestGraphProp in interface NestedGraphPropwantedProp - the property which the user wants to use
public Class getEdgeClass()
getEdgeClass in interface GraphgetEdgeClass in class AbstractDecoratedGraph
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||