public class InvertingEdgeManager<T> extends Object implements EdgeManager<T>
| Constructor and Description |
|---|
InvertingEdgeManager(EdgeManager<T> original) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(T src,
T dst) |
int |
getPredNodeCount(T N)
Return the number of
immediate predecessor nodes of n |
Iterator<T> |
getPredNodes(T N)
Return an
Iterator over the immediate predecessor nodes of n |
int |
getSuccNodeCount(T N)
Return the number of
immediate successor nodes of this Node in the Graph |
Iterator<T> |
getSuccNodes(T N)
Return an Iterator over the immediate successor nodes of n
|
boolean |
hasEdge(T src,
T dst) |
void |
removeAllIncidentEdges(T node) |
void |
removeEdge(T src,
T dst) |
void |
removeIncomingEdges(T node) |
void |
removeOutgoingEdges(T node) |
public InvertingEdgeManager(EdgeManager<T> original)
public Iterator<T> getPredNodes(T N) throws IllegalArgumentException
EdgeManagerIterator over the immediate predecessor nodes of n
This method never returns null.
getPredNodes in interface EdgeManager<T>Iterator over the immediate predecessor nodes of this Node.IllegalArgumentExceptionpublic int getPredNodeCount(T N) throws IllegalArgumentException
EdgeManagerimmediate predecessor nodes of ngetPredNodeCount in interface EdgeManager<T>IllegalArgumentExceptionpublic Iterator<T> getSuccNodes(T N) throws IllegalArgumentException
EdgeManagerThis method never returns null.
getSuccNodes in interface EdgeManager<T>IllegalArgumentExceptionpublic int getSuccNodeCount(T N) throws IllegalArgumentException
EdgeManagerimmediate successor nodes of this Node in the GraphgetSuccNodeCount in interface EdgeManager<T>IllegalArgumentExceptionpublic void addEdge(T src, T dst) throws IllegalArgumentException
addEdge in interface EdgeManager<T>IllegalArgumentExceptionpublic void removeEdge(T src, T dst) throws IllegalArgumentException
removeEdge in interface EdgeManager<T>IllegalArgumentExceptionpublic boolean hasEdge(T src, T dst)
hasEdge in interface EdgeManager<T>public void removeAllIncidentEdges(T node) throws IllegalArgumentException
removeAllIncidentEdges in interface EdgeManager<T>IllegalArgumentExceptionpublic void removeIncomingEdges(T node) throws IllegalArgumentException
removeIncomingEdges in interface EdgeManager<T>IllegalArgumentExceptionpublic void removeOutgoingEdges(T node) throws IllegalArgumentException
removeOutgoingEdges in interface EdgeManager<T>IllegalArgumentException