Class NodeWithNumberedEdges
java.lang.Object
com.ibm.wala.util.graph.impl.NodeWithNumber
com.ibm.wala.util.graph.impl.NodeWithNumberedEdges
- All Implemented Interfaces:
INodeWithNumber
,INodeWithNumberedEdges
Simple implementation of
INodeWithNumberedEdges
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPred
(int eqNumber) Note that this variable appears on the LHS of an equation.void
addSucc
(int eqNumber) Note that this variable appears on the RHS of an equation.void
deletePred
(int eqNumber) remove the edge that indicates this variable is Predined by a certain equationvoid
deleteSucc
(int eqNumber) remove the edge that indicates this variable is Succd by a certain equation@Nullable IntSet
@Nullable IntSet
void
remove all edges that involve this node.void
remove all incoming edges to this this node.void
remove all outgoing edges to this this node.Methods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber
getGraphNodeId, setGraphNodeId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.wala.util.graph.INodeWithNumber
getGraphNodeId, setGraphNodeId
-
Constructor Details
-
NodeWithNumberedEdges
public NodeWithNumberedEdges()
-
-
Method Details
-
getSuccNumbers
- Specified by:
getSuccNumbers
in interfaceINodeWithNumberedEdges
- Returns:
- set of node numbers which are successors of this node
-
getPredNumbers
- Specified by:
getPredNumbers
in interfaceINodeWithNumberedEdges
- Returns:
- set of node numbers which are predecessors of this node
-
addSucc
public void addSucc(int eqNumber) Note that this variable appears on the RHS of an equation.- Specified by:
addSucc
in interfaceINodeWithNumberedEdges
- Parameters:
eqNumber
- the equation number
-
addPred
public void addPred(int eqNumber) Note that this variable appears on the LHS of an equation.- Specified by:
addPred
in interfaceINodeWithNumberedEdges
- Parameters:
eqNumber
- the equation number
-
deleteSucc
public void deleteSucc(int eqNumber) remove the edge that indicates this variable is Succd by a certain equation -
deletePred
public void deletePred(int eqNumber) remove the edge that indicates this variable is Predined by a certain equation -
removeAllIncidentEdges
Description copied from interface:INodeWithNumberedEdges
remove all edges that involve this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeAllIncidentEdges
in interfaceINodeWithNumberedEdges
- Throws:
UnimplementedError
-
removeIncomingEdges
Description copied from interface:INodeWithNumberedEdges
remove all incoming edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeIncomingEdges
in interfaceINodeWithNumberedEdges
- Throws:
UnimplementedError
-
removeOutgoingEdges
Description copied from interface:INodeWithNumberedEdges
remove all outgoing edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeOutgoingEdges
in interfaceINodeWithNumberedEdges
- Throws:
UnimplementedError
-