|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.graph.impl.DelegatingGraph<T>
public class DelegatingGraph<T>
A utility class.
| Constructor Summary | |
|---|---|
DelegatingGraph(Graph<T> delegate)
|
|
| Method Summary | |
|---|---|
void |
addEdge(T src,
T dst)
|
void |
addNode(T n)
add a node to this graph |
boolean |
containsNode(T N)
|
int |
getNumberOfNodes()
|
int |
getPredNodeCount(T N)
Return the number of immediate predecessor
nodes of this Node
in the Graph. |
java.util.Iterator<? extends T> |
getPredNodes(T N)
Return an Iterator over the immediate predecessor nodes of this Node
in the Graph. |
int |
getSuccNodeCount(T N)
Return the number of immediate successor
nodes of this Node
in the Graph |
java.util.Iterator<? extends T> |
getSuccNodes(T N)
Return an Iterator over the immediate successor nodes of this Node in
the Graph |
boolean |
hasEdge(T src,
T dst)
|
java.util.Iterator<T> |
iterator()
|
void |
removeAllIncidentEdges(T node)
|
void |
removeEdge(T src,
T dst)
|
void |
removeIncomingEdges(T node)
|
void |
removeNode(T n)
remove a node from this graph |
void |
removeNodeAndEdges(T N)
remove a node and all its incident edges |
void |
removeOutgoingEdges(T node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingGraph(Graph<T> delegate)
| Method Detail |
|---|
public void addEdge(T src,
T dst)
throws java.lang.IllegalArgumentException
addEdge in interface EdgeManager<T>java.lang.IllegalArgumentExceptionpublic void addNode(T n)
NodeManager
addNode in interface NodeManager<T>public boolean containsNode(T N)
containsNode in interface NodeManager<T>public int getNumberOfNodes()
getNumberOfNodes in interface NodeManager<T>
public int getPredNodeCount(T N)
throws java.lang.IllegalArgumentException
EdgeManagerimmediate predecessor
nodes of this Node
in the Graph.
getPredNodeCount in interface EdgeManager<T>java.lang.IllegalArgumentException
public java.util.Iterator<? extends T> getPredNodes(T N)
throws java.lang.IllegalArgumentException
EdgeManagernodes of this Node
in the Graph.
This method never returns null.
getPredNodes in interface EdgeManager<T>java.lang.IllegalArgumentException
public int getSuccNodeCount(T N)
throws java.lang.IllegalArgumentException
EdgeManagerimmediate successor
nodes of this Node
in the Graph
getSuccNodeCount in interface EdgeManager<T>java.lang.IllegalArgumentException
public java.util.Iterator<? extends T> getSuccNodes(T N)
throws java.lang.IllegalArgumentException
EdgeManagernodes of this Node in
the Graph
This method never returns null.
getSuccNodes in interface EdgeManager<T>java.lang.IllegalArgumentException
public boolean hasEdge(T src,
T dst)
hasEdge in interface EdgeManager<T>public java.util.Iterator<T> iterator()
iterator in interface NodeManager<T>iterator in interface java.lang.Iterable<T>
public void removeAllIncidentEdges(T node)
throws java.lang.IllegalArgumentException
removeAllIncidentEdges in interface EdgeManager<T>java.lang.IllegalArgumentException
public void removeEdge(T src,
T dst)
throws java.lang.IllegalArgumentException
removeEdge in interface EdgeManager<T>java.lang.IllegalArgumentException
public void removeIncomingEdges(T node)
throws java.lang.IllegalArgumentException
removeIncomingEdges in interface EdgeManager<T>java.lang.IllegalArgumentExceptionpublic void removeNode(T n)
NodeManager
removeNode in interface NodeManager<T>
public void removeNodeAndEdges(T N)
throws java.lang.IllegalArgumentException
Graph
removeNodeAndEdges in interface Graph<T>java.lang.IllegalArgumentException
public void removeOutgoingEdges(T node)
throws java.lang.IllegalArgumentException
removeOutgoingEdges in interface EdgeManager<T>java.lang.IllegalArgumentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||