Package com.ibm.wala.util.graph.impl
Class SelfLoopAddedEdgeManager<T>
- java.lang.Object
-
- com.ibm.wala.util.graph.impl.SelfLoopAddedEdgeManager<T>
-
- All Implemented Interfaces:
EdgeManager<T>
public class SelfLoopAddedEdgeManager<T> extends Object implements EdgeManager<T>
-
-
Constructor Summary
Constructors Constructor Description SelfLoopAddedEdgeManager(EdgeManager<T> original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdge(T src, T dst)intgetPredNodeCount(T n)Return the number ofimmediate predecessornodes of nIterator<T>getPredNodes(@Nullable T n)Return anIteratorover the immediate predecessor nodes of nintgetSuccNodeCount(T n)Return the number ofimmediate successornodes of this Node in the GraphIterator<T>getSuccNodes(@Nullable T n)Return an Iterator over the immediate successor nodes of nbooleanhasEdge(@Nullable T src, @Nullable T dst)voidremoveAllIncidentEdges(T node)voidremoveEdge(T src, T dst)voidremoveIncomingEdges(T node)voidremoveOutgoingEdges(T node)
-
-
-
Constructor Detail
-
SelfLoopAddedEdgeManager
public SelfLoopAddedEdgeManager(EdgeManager<T> original)
-
-
Method Detail
-
getPredNodes
public Iterator<T> getPredNodes(@Nullable T n)
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.
-
getPredNodeCount
public int getPredNodeCount(T n)
Description copied from interface:EdgeManagerReturn the number ofimmediate predecessornodes of n- Specified by:
getPredNodeCountin interfaceEdgeManager<T>- Returns:
- the number of immediate predecessors of n.
-
getSuccNodes
public Iterator<T> getSuccNodes(@Nullable T n)
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
-
getSuccNodeCount
public int getSuccNodeCount(T n)
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.
-
addEdge
public void addEdge(T src, T dst)
- Specified by:
addEdgein interfaceEdgeManager<T>
-
removeEdge
public void removeEdge(T src, T dst) throws UnsupportedOperationException
- Specified by:
removeEdgein interfaceEdgeManager<T>- Throws:
UnsupportedOperationException
-
removeAllIncidentEdges
public void removeAllIncidentEdges(T node) throws UnsupportedOperationException
- Specified by:
removeAllIncidentEdgesin interfaceEdgeManager<T>- Throws:
UnsupportedOperationException
-
removeIncomingEdges
public void removeIncomingEdges(T node) throws UnsupportedOperationException
- Specified by:
removeIncomingEdgesin interfaceEdgeManager<T>- Throws:
UnsupportedOperationException
-
removeOutgoingEdges
public void removeOutgoingEdges(T node) throws UnsupportedOperationException
- Specified by:
removeOutgoingEdgesin interfaceEdgeManager<T>- Throws:
UnsupportedOperationException
-
hasEdge
@NullUnmarked public boolean hasEdge(@Nullable T src, @Nullable T dst)
- Specified by:
hasEdgein interfaceEdgeManager<T>
-
-