Class RandomGraph.IntegerRandomGraph
java.lang.Object
com.ibm.wala.util.graph.AbstractGraph<Integer>
com.ibm.wala.util.graph.AbstractNumberedGraph<Integer>
com.ibm.wala.util.graph.impl.SlowSparseNumberedGraph<Integer>
com.ibm.wala.util.graph.impl.RandomGraph<Integer>
com.ibm.wala.util.graph.impl.RandomGraph.IntegerRandomGraph
- All Implemented Interfaces:
EdgeManager<Integer>, Graph<Integer>, NodeManager<Integer>, NumberedEdgeManager<Integer>, NumberedGraph<Integer>, NumberedNodeManager<Integer>, Serializable, Iterable<Integer>
- Enclosing class:
RandomGraph<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class RandomGraph
RandomGraph.IntegerRandomGraph -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SlowSparseNumberedGraph
copyInto, duplicate, getEdgeManager, getNodeManager, makeModifier and TypeMethodDescriptionstatic <T> voidstatic <T> SlowSparseNumberedGraph<T> static <T> SlowSparseNumberedGraph<T> make()Methods inherited from class AbstractNumberedGraph
getMaxNumber, getNode, getNumber, getPredNodeNumbers, getSuccNodeNumbers, iterateNodesModifier and TypeMethodDescriptionintgetNode(int number) intgetPredNodeNumbers(Integer node) getSuccNodeNumbers(Integer node) Methods inherited from class AbstractGraph
addEdge, addNode, containsNode, edgeString, getNumberOfNodes, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, iterator, nodeString, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeNode, removeNodeAndEdges, removeOutgoingEdges, stream, toStringModifier and TypeMethodDescriptionvoidvoidadd a node to this graphbooleanprotected StringedgeString(Integer from, Integer to) intintReturn the number ofimmediate predecessornodes of nReturn anIteratorover the immediate predecessor nodes of nintReturn the number ofimmediate successornodes of this Node in the GraphReturn an Iterator over the immediate successor nodes of nbooleaniterator()protected StringnodeString(Integer n, boolean forEdge) voidvoidremoveEdge(Integer src, Integer dst) voidremoveIncomingEdges(Integer node) voidremove a node from this graphvoidremove a node and all its incident edgesvoidremoveOutgoingEdges(Integer node) stream()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
IntegerRandomGraph
public IntegerRandomGraph(int nodes, int edges)
-
-
Method Details
-
makeNode
- Specified by:
makeNodein classRandomGraph<Integer>
-