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>, java.lang.Iterable<T>
- Direct Known Subclasses:
- PDG
public class SlowSparseNumberedGraph<T>
- extends AbstractNumberedGraph<T>
A graph of numbered nodes, expected to have a fairly sparse edge structure.
| Methods inherited from class com.ibm.wala.util.graph.AbstractGraph |
addEdge, addNode, containsNode, getNumberOfNodes, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, iterator, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeNode, removeNodeAndEdges, removeOutgoingEdges, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SlowSparseNumberedGraph
public 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?
getNodeManager
public NodeManager<T> getNodeManager()
- Specified by:
getNodeManager in class AbstractGraph<T>
- Returns:
- the object which manages nodes in the graph
getEdgeManager
public EdgeManager<T> getEdgeManager()
- Specified by:
getEdgeManager in class AbstractGraph<T>
- Returns:
- the object which manages edges in the graph
duplicate
public static <T> SlowSparseNumberedGraph<T> duplicate(Graph<T> g)
- Parameters:
g -
- Returns:
- a graph with the same nodes and edges as g
copyInto
public static <T> void copyInto(Graph<T> g,
Graph<T> into)