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
This method never returns null . |
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
EdgeManager
Iterator
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.IllegalArgumentException
public int getPredNodeCount(T N) throws IllegalArgumentException
EdgeManager
immediate predecessor
nodes of ngetPredNodeCount
in interface EdgeManager<T>
IllegalArgumentException
public Iterator<T> getSuccNodes(T N) throws IllegalArgumentException
EdgeManager
This method never returns null
.
getSuccNodes
in interface EdgeManager<T>
IllegalArgumentException
public int getSuccNodeCount(T N) throws IllegalArgumentException
EdgeManager
immediate successor
nodes of this Node in the GraphgetSuccNodeCount
in interface EdgeManager<T>
IllegalArgumentException
public void addEdge(T src, T dst) throws IllegalArgumentException
addEdge
in interface EdgeManager<T>
IllegalArgumentException
public void removeEdge(T src, T dst) throws IllegalArgumentException
removeEdge
in interface EdgeManager<T>
IllegalArgumentException
public boolean hasEdge(T src, T dst)
hasEdge
in interface EdgeManager<T>
public void removeAllIncidentEdges(T node) throws IllegalArgumentException
removeAllIncidentEdges
in interface EdgeManager<T>
IllegalArgumentException
public void removeIncomingEdges(T node) throws IllegalArgumentException
removeIncomingEdges
in interface EdgeManager<T>
IllegalArgumentException
public void removeOutgoingEdges(T node) throws IllegalArgumentException
removeOutgoingEdges
in interface EdgeManager<T>
IllegalArgumentException