Package com.ibm.wala.util.graph.impl
Class SlowSparseNumberedGraph<T>
java.lang.Object
com.ibm.wala.util.graph.AbstractGraph<T>
com.ibm.wala.util.graph.AbstractNumberedGraph<T>
com.ibm.wala.util.graph.impl.SlowSparseNumberedGraph<T>
- All Implemented Interfaces:
EdgeManager<T>,Graph<T>,NodeManager<T>,NumberedEdgeManager<T>,NumberedGraph<T>,NumberedNodeManager<T>,Serializable,Iterable<T>
A graph of numbered nodes, expected to have a fairly sparse edge structure.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSlowSparseNumberedGraph(int normalOutCount) If normalOutCount == n, this edge manager will eagerly allocated n words to hold out edges for each node. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidstatic <T> SlowSparseNumberedGraph<T> static <T> SlowSparseNumberedGraph<T> make()Methods inherited from class com.ibm.wala.util.graph.AbstractNumberedGraph
getMaxNumber, getNode, getNumber, getPredNodeNumbers, getSuccNodeNumbers, iterateNodesMethods inherited from class com.ibm.wala.util.graph.AbstractGraph
addEdge, addNode, containsNode, edgeString, getNumberOfNodes, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, iterator, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeNode, removeNodeAndEdges, removeOutgoingEdges, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ibm.wala.util.graph.EdgeManager
addEdge, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdgesMethods inherited from interface com.ibm.wala.util.graph.Graph
removeNodeAndEdgesMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.ibm.wala.util.graph.NodeManager
addNode, containsNode, getNumberOfNodes, iterator, removeNode
-
Constructor Details
-
SlowSparseNumberedGraph
protected SlowSparseNumberedGraph() -
SlowSparseNumberedGraph
public SlowSparseNumberedGraph(int normalOutCount) If normalOutCount == n, this edge manager will eagerly allocated n words to hold out edges for each node. (performance optimization for time)- Parameters:
normalOutCount- what is the "normal" number of out edges for a node?
-
-
Method Details
-
getNodeManager
- Specified by:
getNodeManagerin classAbstractNumberedGraph<T>- Returns:
- the object which manages nodes in the graph
-
getEdgeManager
- Specified by:
getEdgeManagerin classAbstractNumberedGraph<T>- Returns:
- the object which manages edges in the graph
-
duplicate
- Returns:
- a graph with the same nodes and edges as g
-
copyInto
-
make
-