public class ResidualNetwork extends MultiGraph<Vertex,RNEdge>
Network
.
getNetwork()
to get the related network of the residual network meaning the graph the residual network
is based on.Network
Constructor and Description |
---|
ResidualNetwork(Network<? extends Node,? extends Arc> network)
Creates a new residual network.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterEdgeRemoved(RNEdge edge)
Is invoked after an edge is removed from the graph.
|
protected void |
beforeEdgeAdded(RNEdge edge)
Is invoked before a new edge is added to the graph.
|
Network<? extends Node,? extends Arc> |
getNetwork()
Gets the related network.
|
protected boolean |
isEdgeAllowed(RNEdge edge)
Checks if the given edge is allowed.
|
containsEdge
add, add, afterEdgeAdded, afterVertexAdded, afterVertexRemoved, beforeVertexAdded, contains, contains, containsVertex, equals, equals, getEdge, getEdge, getEdge, getEdgeByID, getEdgeByIDSet, getEdges, getEdges, getEdgeSet, getOrder, getSize, getType, getVertex, getVertexByCaption, getVertexByID, getVertexByIDSet, getVertexSet, isRemovable, isRemovable, isVertexAllowed, remove, remove, removeAll, toString
public Network<? extends Node,? extends Arc> getNetwork()
protected boolean isEdgeAllowed(RNEdge edge)
Graph
isEdgeAllowed
in class Graph<Vertex,RNEdge>
edge
- the edgetrue
if the edge is allowed otherwise false
protected void beforeEdgeAdded(RNEdge edge)
Graph
beforeEdgeAdded
in class Graph<Vertex,RNEdge>
edge
- the edge that is added