T
- the type of node in the graphpublic interface EdgeManager<T>
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) |
Iterator<T> getPredNodes(T n)
Iterator
over the immediate predecessor nodes of n
This method never returns null
.Iterator
over the immediate predecessor nodes of this Node.int getPredNodeCount(T n)
immediate predecessor
nodes of nIterator<T> getSuccNodes(T n)
This method never returns null
.
int getSuccNodeCount(T N)
immediate successor
nodes of this Node in the Graphvoid removeEdge(T src, T dst) throws UnsupportedOperationException
UnsupportedOperationException
void removeAllIncidentEdges(T node) throws UnsupportedOperationException
UnsupportedOperationException
void removeIncomingEdges(T node) throws UnsupportedOperationException
UnsupportedOperationException
void removeOutgoingEdges(T node) throws UnsupportedOperationException
UnsupportedOperationException