|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public 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 this Node
in the Graph. |
java.util.Iterator<? extends T> |
getPredNodes(T N)
Return an Iterator over the immediate predecessor nodes of this Node
in the Graph. |
int |
getSuccNodeCount(T N)
Return the number of immediate successor
nodes of this Node
in the Graph |
java.util.Iterator<? extends T> |
getSuccNodes(T N)
Return an Iterator over the immediate successor nodes of this Node in
the Graph |
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<? extends T> getPredNodes(T N)
nodes of this Node
in the Graph.
This method never returns null.
int getPredNodeCount(T N)
immediate predecessor
nodes of this Node
in the Graph.
java.util.Iterator<? extends T> getSuccNodes(T N)
nodes of this Node in
the Graph
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 | ||||||||