|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - type of nodes in this graphU - types of edge labels.public interface LabeledEdgeManager<T,U>
An object which tracks labeled edges in a graph.
| Method Summary | |
|---|---|
void |
addEdge(T src,
T dst,
U label)
adds an edge with some label |
U |
getDefaultLabel()
Sets the default object used as label for operations where no specific edge label is provided. |
java.util.Set<? extends U> |
getEdgeLabels(T src,
T dst)
Returns a set of all labeled edges between node src and node dst |
java.util.Iterator<? extends U> |
getPredLabels(T N)
|
int |
getPredNodeCount(T N,
U label)
Return the number of immediate predecessor nodes of this Node in the Graph on edges with some label. |
java.util.Iterator<T> |
getPredNodes(T N,
U label)
Return an Iterator over the immediate predecessor nodes of this Node in the Graph on edges with some label. |
java.util.Iterator<? extends U> |
getSuccLabels(T N)
|
int |
getSuccNodeCount(T N,
U label)
Return the number of immediate successor nodes of this Node in the Graph |
java.util.Iterator<? extends T> |
getSuccNodes(T N,
U label)
Return an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label. |
boolean |
hasEdge(T src,
T dst,
U label)
|
void |
removeEdge(T src,
T dst,
U label)
|
| Methods inherited from interface com.ibm.wala.util.graph.EdgeManager |
|---|
addEdge, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdges |
| Method Detail |
|---|
U getDefaultLabel()
java.util.Iterator<T> getPredNodes(T N,
U label)
null.
java.util.Iterator<? extends U> getPredLabels(T N)
N -
int getPredNodeCount(T N,
U label)
immediate predecessor nodes of this Node in the Graph on edges with some label.
java.util.Iterator<? extends T> getSuccNodes(T N,
U label)
This method never returns null.
java.util.Iterator<? extends U> getSuccLabels(T N)
int getSuccNodeCount(T N,
U label)
immediate successor nodes of this Node in the Graph
void addEdge(T src,
T dst,
U label)
void removeEdge(T src,
T dst,
U label)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
boolean hasEdge(T src,
T dst,
U label)
java.util.Set<? extends U> getEdgeLabels(T src,
T dst)
src - source node of the edgedst - target node of the edge
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||