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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPred(int eqNumber) Note that this variable appears on the LHS of an equation.voidaddSucc(int eqNumber) Note that this variable appears on the RHS of an equation.voiddeletePred(int eqNumber) remove the edge that indicates this variable is Predined by a certain equationvoiddeleteSucc(int eqNumber) remove the edge that indicates this variable is Succd by a certain equation@Nullable IntSet@Nullable IntSetvoidremove all edges that involve this node.voidremove all incoming edges to this this node.voidremove all outgoing edges to this this node.Methods inherited from class NodeWithNumber
getGraphNodeId, setGraphNodeIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface INodeWithNumber
getGraphNodeId, setGraphNodeId
-
Constructor Details
-
NodeWithNumberedEdges
public NodeWithNumberedEdges()
-
-
Method Details
-
getSuccNumbers
- Specified by:
getSuccNumbersin interfaceINodeWithNumberedEdges- Returns:
- set of node numbers which are successors of this node
-
getPredNumbers
- Specified by:
getPredNumbersin 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:
addSuccin 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:
addPredin 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:INodeWithNumberedEdgesremove all edges that involve this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeAllIncidentEdgesin interfaceINodeWithNumberedEdges- Throws:
UnimplementedError
-
removeIncomingEdges
Description copied from interface:INodeWithNumberedEdgesremove all incoming edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeIncomingEdgesin interfaceINodeWithNumberedEdges- Throws:
UnimplementedError
-
removeOutgoingEdges
Description copied from interface:INodeWithNumberedEdgesremove all outgoing edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeOutgoingEdgesin interfaceINodeWithNumberedEdges- Throws:
UnimplementedError
-