Package com.ibm.wala.util.graph
Interface EdgeManager<T>
-
- Type Parameters:
T- the type of node in the graph
- All Known Subinterfaces:
Graph<T>,LabeledEdgeManager<T,U>,LabeledGraph<T,U>,NumberedEdgeManager<T>,NumberedGraph<T>,NumberedLabeledEdgeManager<T,U>,NumberedLabeledGraph<T,I>,OrderedMultiGraph<T>,SerializableGraph<T>
- All Known Implementing Classes:
AbstractGraph,AbstractLabeledGraph,AbstractNumberedGraph,AbstractNumberedLabeledGraph,BasicEdgeManager,BasicGraph,BasicOrderedMultiGraph,DelegatingGraph,DelegatingNumberedEdgeManager,DelegatingNumberedGraph,EdgeFilteredNumberedGraph,ExtensionGraph,InvertedGraph,InvertedNumberedGraph,InvertingEdgeManager,InvertingNumberedEdgeManager,RandomGraph,RandomGraph.IntegerRandomGraph,SelfLoopAddedEdgeManager,SelfLoopAddedGraph,SlowSparseNumberedGraph,SlowSparseNumberedLabeledGraph,SparseNumberedEdgeManager,SparseNumberedGraph,SparseNumberedLabeledEdgeManager
public interface EdgeManager<T>An object which manages edges in a directed graph.
-
-
Method Summary
All Methods Instance Methods Abstract 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)
-
-
-
Method Detail
-
getPredNodes
Iterator<T> getPredNodes(@Nullable T n)
Return anIteratorover the immediate predecessor nodes of nThis method never returns
null.- Returns:
- an
Iteratorover the immediate predecessor nodes of this Node.
-
getPredNodeCount
int getPredNodeCount(T n)
Return the number ofimmediate predecessornodes of n- Returns:
- the number of immediate predecessors of n.
-
getSuccNodes
Iterator<T> getSuccNodes(@Nullable T n)
Return an Iterator over the immediate successor nodes of nThis method never returns
null.- Returns:
- an Iterator over the immediate successor nodes of n
-
getSuccNodeCount
int getSuccNodeCount(T N)
Return the number ofimmediate successornodes of this Node in the Graph- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
removeEdge
void removeEdge(T src, T dst) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
removeAllIncidentEdges
void removeAllIncidentEdges(T node) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
removeIncomingEdges
void removeIncomingEdges(T node) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
removeOutgoingEdges
void removeOutgoingEdges(T node) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
-