|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - the type of node in the graphpublic interface EdgeManager<T>
An object which manages edges in a directed graph.
| Method Summary | |
|---|---|
void |
addEdge(T src,
T dst)
|
int |
getPredNodeCount(T n)
Return the number of immediate predecessor nodes of n |
java.util.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 |
java.util.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)
|
| Method Detail |
|---|
java.util.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 n
java.util.Iterator<T> getSuccNodes(T n)
This method never returns null.
int getSuccNodeCount(T N)
immediate successor nodes of this Node in the Graph
void addEdge(T src,
T dst)
void removeEdge(T src,
T dst)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void removeAllIncidentEdges(T node)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void removeIncomingEdges(T node)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void removeOutgoingEdges(T node)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
boolean hasEdge(T src,
T dst)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||