Interface LabeledEdgeManager<T,U>
- Type Parameters:
T
- type of nodes in this graphU
- types of edge labels.
- All Superinterfaces:
EdgeManager<T>
- All Known Subinterfaces:
IFlowGraph
,LabeledGraph<T,
,U> NumberedLabeledEdgeManager<T,
,U> NumberedLabeledGraph<T,
I>
- All Known Implementing Classes:
AbstractDemandFlowGraph
,AbstractFlowGraph
,AbstractLabeledGraph
,AbstractNumberedLabeledGraph
,DemandPointerFlowGraph
,DemandValueFlowGraph
,PDG
,SlowSparseNumberedLabeledGraph
,SparseNumberedLabeledEdgeManager
An object which tracks labeled edges in a graph.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds an edge with some label@Nullable U
Sets 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) int
getPredNodeCount
(T N, U label) Return the number ofimmediate predecessor
nodes of this Node in the Graph on edges with some label.getPredNodes
(T N, Predicate<U> pred) 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) int
getSuccNodeCount
(T N, U label) Return the number ofimmediate successor
nodes 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.boolean
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 Details
-
getDefaultLabel
@Nullable 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
-
getPredNodes
-
getPredLabels
-
getPredNodeCount
Return the number ofimmediate predecessor
nodes 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
-
getSuccLabels
-
getSuccNodeCount
Return the number ofimmediate successor
nodes of this Node in the Graph- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
addEdge
-
removeEdge
- Throws:
UnsupportedOperationException
-
hasEdge
-
getEdgeLabels
-