Class SparseNumberedLabeledEdgeManager<T,U>
java.lang.Object
com.ibm.wala.util.graph.labeled.SparseNumberedLabeledEdgeManager<T,U>
- All Implemented Interfaces:
EdgeManager<T>, LabeledEdgeManager<T,U>, NumberedLabeledEdgeManager<T, U>, NumberedEdgeManager<T>, Serializable
public class SparseNumberedLabeledEdgeManager<T,U>
extends Object
implements Serializable, NumberedLabeledEdgeManager<T,U>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSparseNumberedLabeledEdgeManager(NumberedNodeManager<T> nodeManager) SparseNumberedLabeledEdgeManager(NumberedNodeManager<T> nodeManager, U defaultLabel) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadds an edge with some label@Nullable USets 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) intReturn the number ofimmediate predecessornodes of nintgetPredNodeCount(T N, U label) Return the number ofimmediate predecessornodes of this Node in the Graph on edges with some label.getPredNodeNumbers(@Nullable T node) getPredNodeNumbers(@Nullable T node, U label) getPredNodes(@Nullable T N) Return anIteratorover the immediate predecessor nodes of ngetPredNodes(@Nullable 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) intReturn the number ofimmediate successornodes of this Node in the GraphintgetSuccNodeCount(T N, U label) Return the number ofimmediate successornodes of this Node in the GraphgetSuccNodeNumbers(@Nullable T node) getSuccNodeNumbers(@Nullable T node, U label) getSuccNodes(@Nullable T N) Return an Iterator over the immediate successor nodes of ngetSuccNodes(@Nullable T N, U label) Return an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label.booleanbooleanvoidremoveAllIncidentEdges(T node) voidremoveEdge(T src, T dst) voidremoveEdge(T src, T dst, U label) voidremoveIncomingEdges(T node) voidremoveOutgoingEdges(T node) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LabeledEdgeManager
getPredNodes
-
Constructor Details
-
SparseNumberedLabeledEdgeManager
-
SparseNumberedLabeledEdgeManager
-
-
Method Details
-
addEdge
Description copied from interface:LabeledEdgeManageradds an edge with some label- Specified by:
addEdgein interfaceLabeledEdgeManager<T,U> - See Also:
-
getPredNodeCount
Description copied from interface:LabeledEdgeManagerReturn the number ofimmediate predecessornodes of this Node in the Graph on edges with some label.- Specified by:
getPredNodeCountin interfaceLabeledEdgeManager<T,U> - Returns:
- the number of immediate predecessor Nodes of this Node in the Graph.
- See Also:
-
getPredNodes
Description copied from interface:LabeledEdgeManagerReturn an Iterator over the immediate predecessor nodes of this Node in the Graph on edges with some label.This method never returns
null.- Specified by:
getPredNodesin interfaceLabeledEdgeManager<T,U> - Returns:
- an Iterator over the immediate predecessor nodes of this Node.
- See Also:
-
getSuccNodeCount
Description copied from interface:LabeledEdgeManagerReturn the number ofimmediate successornodes of this Node in the Graph- Specified by:
getSuccNodeCountin interfaceLabeledEdgeManager<T,U> - Returns:
- the number of immediate successor Nodes of this Node in the Graph.
- See Also:
-
getSuccNodes
Description copied from interface:LabeledEdgeManagerReturn an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label.This method never returns
null.- Specified by:
getSuccNodesin interfaceLabeledEdgeManager<T,U> - Returns:
- an Iterator over the immediate successor Nodes of this Node.
- See Also:
-
hasEdge
-
removeAllIncidentEdges
- Specified by:
removeAllIncidentEdgesin interfaceEdgeManager<T>
-
removeEdge
- Specified by:
removeEdgein interfaceLabeledEdgeManager<T,U> - Throws:
IllegalArgumentException- See Also:
-
removeIncomingEdges
- Specified by:
removeIncomingEdgesin interfaceEdgeManager<T>- Throws:
IllegalArgumentException- See Also:
-
removeOutgoingEdges
- Specified by:
removeOutgoingEdgesin interfaceEdgeManager<T>- Throws:
IllegalArgumentException- See Also:
-
getPredLabels
- Specified by:
getPredLabelsin interfaceLabeledEdgeManager<T,U> - Returns:
- the labels on edges whose destination is N
-
getSuccLabels
- Specified by:
getSuccLabelsin interfaceLabeledEdgeManager<T,U> - Returns:
- the labels on edges whose source is N
-
getEdgeLabels
Description copied from interface:LabeledEdgeManagerReturns a set of all labeled edges between node src and node dst- Specified by:
getEdgeLabelsin interfaceLabeledEdgeManager<T,U> - Parameters:
src- source node of the edgedst- target node of the edge- Returns:
- Set of edge labels
-
addEdge
- Specified by:
addEdgein interfaceEdgeManager<T>
-
getPredNodeCount
Description copied from interface:EdgeManagerReturn the number ofimmediate predecessornodes of n- Specified by:
getPredNodeCountin interfaceEdgeManager<T>- Returns:
- the number of immediate predecessors of n.
-
getPredNodes
Description copied from interface:EdgeManagerReturn anIteratorover the immediate predecessor nodes of nThis method never returns
null.- Specified by:
getPredNodesin interfaceEdgeManager<T>- Returns:
- an
Iteratorover the immediate predecessor nodes of this Node.
-
getSuccNodeCount
Description copied from interface:EdgeManagerReturn the number ofimmediate successornodes of this Node in the Graph- Specified by:
getSuccNodeCountin interfaceEdgeManager<T>- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
getSuccNodes
Description copied from interface:EdgeManagerReturn an Iterator over the immediate successor nodes of nThis method never returns
null.- Specified by:
getSuccNodesin interfaceEdgeManager<T>- Returns:
- an Iterator over the immediate successor nodes of n
-
hasEdge
- Specified by:
hasEdgein interfaceEdgeManager<T>
-
removeEdge
- Specified by:
removeEdgein interfaceEdgeManager<T>- Throws:
UnsupportedOperationException
-
getDefaultLabel
Description copied from interface:LabeledEdgeManagerSets the default object used as label for operations where no specific edge label is provided. This is due to compatibility with the EdgeManager interface- Specified by:
getDefaultLabelin interfaceLabeledEdgeManager<T,U>
-
getPredNodeNumbers
- Specified by:
getPredNodeNumbersin interfaceNumberedLabeledEdgeManager<T,U> - Throws:
IllegalArgumentException
-
getSuccNodeNumbers
- Specified by:
getSuccNodeNumbersin interfaceNumberedLabeledEdgeManager<T,U> - Throws:
IllegalArgumentException
-
getPredNodeNumbers
- Specified by:
getPredNodeNumbersin interfaceNumberedEdgeManager<T>- Returns:
- the numbers identifying the immediate predecessors of node
-
getSuccNodeNumbers
- Specified by:
getSuccNodeNumbersin interfaceNumberedEdgeManager<T>- Returns:
- the numbers identifying the immediate successors of node
-