Class SlowNumberedNodeManager<T>
java.lang.Object
com.ibm.wala.util.graph.impl.SlowNumberedNodeManager<T>
- All Implemented Interfaces:
NodeManager<T>
,NumberedNodeManager<T>
,Serializable
,Iterable<T>
public class SlowNumberedNodeManager<T>
extends Object
implements NumberedNodeManager<T>, Serializable
An object which manages node numbers via a mapping.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add a node to this graphboolean
containsNode
(@Nullable T N) int
getNode
(int number) int
int
iterator()
void
removeNode
(T n) remove a node from this graphstream()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SlowNumberedNodeManager
public SlowNumberedNodeManager()
-
-
Method Details
-
getNumber
- Specified by:
getNumber
in interfaceNumberedNodeManager<T>
-
getNode
- Specified by:
getNode
in interfaceNumberedNodeManager<T>
-
getMaxNumber
public int getMaxNumber()- Specified by:
getMaxNumber
in interfaceNumberedNodeManager<T>
-
iterator
-
stream
-
getNumberOfNodes
public int getNumberOfNodes()- Specified by:
getNumberOfNodes
in interfaceNodeManager<T>
- Returns:
- the number of nodes in this graph
-
addNode
Description copied from interface:NodeManager
add a node to this graph- Specified by:
addNode
in interfaceNodeManager<T>
-
removeNode
Description copied from interface:NodeManager
remove a node from this graph- Specified by:
removeNode
in interfaceNodeManager<T>
- See Also:
-
toString
-
containsNode
- Specified by:
containsNode
in interfaceNodeManager<T>
- Returns:
- true iff the graph contains the specified node
- See Also:
-
iterateNodes
- Specified by:
iterateNodes
in interfaceNumberedNodeManager<T>
- Returns:
- iterator of nodes with the numbers in set s
-