Package com.ibm.wala.util.graph.labeled
Interface LabeledEdgeManager<T,U>
- Type Parameters:
T- type of nodes in this graphU- types of edge labels.
- All Superinterfaces:
EdgeManager<T>
- All Known Subinterfaces:
LabeledGraph<T,,U> NumberedLabeledEdgeManager<T,,U> NumberedLabeledGraph<T,I>
- All Known Implementing Classes:
AbstractLabeledGraph,AbstractNumberedLabeledGraph,SlowSparseNumberedLabeledGraph,SparseNumberedLabeledEdgeManager
An object which tracks labeled edges in a graph.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadds an edge with some labelSets the default object used as label for operations where no specific edge label is provided.getEdgeLabels(T src, T dst) Returns a set of all labeled edges between node src and node dstgetPredLabels(T N) intgetPredNodeCount(T N, U label) Return the number ofimmediate predecessornodes of this Node in the Graph on edges with some label.getPredNodes(T N, U label) Return an Iterator over the immediate predecessor nodes of this Node in the Graph on edges with some label.getSuccLabels(T N) intgetSuccNodeCount(T N, U label) Return the number ofimmediate successornodes of this Node in the GraphgetSuccNodes(T N, U label) Return an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label.booleanvoidremoveEdge(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 Details
-
getDefaultLabel
U getDefaultLabel()Sets the default object used as label for operations where no specific edge label is provided. This is due to compatibility with the EdgeManager interface -
getPredNodes
Return an Iterator over the immediate predecessor nodes of this Node in the Graph on edges with some label. This method never returnsnull.- Returns:
- an Iterator over the immediate predecessor nodes of this Node.
-
getPredLabels
- Returns:
- the labels on edges whose destination is N
-
getPredNodeCount
Return the number ofimmediate predecessornodes of this Node in the Graph on edges with some label.- Returns:
- the number of immediate predecessor Nodes of this Node in the Graph.
-
getSuccNodes
Return an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label.This method never returns
null.- Returns:
- an Iterator over the immediate successor Nodes of this Node.
-
getSuccLabels
- Returns:
- the labels on edges whose source is N
-
getSuccNodeCount
Return the number ofimmediate successornodes of this Node in the Graph- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
addEdge
adds an edge with some label -
removeEdge
- Throws:
UnsupportedOperationException
-
hasEdge
-
getEdgeLabels
Returns a set of all labeled edges between node src and node dst- Parameters:
src- source node of the edgedst- target node of the edge- Returns:
- Set of edge labels
-