Class BasicNodeManager<T>
java.lang.Object
com.ibm.wala.util.graph.impl.BasicNodeManager<T>
- All Implemented Interfaces:
NodeManager<T>, Iterable<T>
Simple implementation of a
NodeManager.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a node to this graphbooleancontainsNode(@Nullable T N) intiterator()voidremoveNode(T n) remove a node from this graphstream()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
BasicNodeManager
public BasicNodeManager()
-
-
Method Details
-
stream
-
iterator
-
getNumberOfNodes
public int getNumberOfNodes()- Specified by:
getNumberOfNodesin interfaceNodeManager<T>- Returns:
- the number of nodes in this graph
-
addNode
Description copied from interface:NodeManageradd a node to this graph- Specified by:
addNodein interfaceNodeManager<T>
-
removeNode
Description copied from interface:NodeManagerremove a node from this graph- Specified by:
removeNodein interfaceNodeManager<T>
-
containsNode
- Specified by:
containsNodein interfaceNodeManager<T>- Returns:
- true iff the graph contains the specified node
-