Uses of Class
algs41.Graph
Packages that use Graph
-
Uses of Graph in algs41
Modifier and TypeMethodDescriptionstatic GraphGraphGenerator.binaryTree(int V) Returns a complete binary tree graph onVvertices.static GraphGraphGenerator.bipartite(int V1, int V2, double p) Returns a random simple bipartite graph onV1andV2vertices, containing each possible edge with probabilityp.static GraphGraphGenerator.complete(int V) static GraphGraphGenerator.connected(int V, int E) static GraphGraphGenerator.connected(int V, int E, int c) static Graphstatic GraphGraphGenerator.cycle(int V) Returns a cycle graph onVvertices.static GraphGraphGenerator.eulerianCycle(int V, int E) Returns an Eulerian cycle graph onVvertices.static GraphGraphGenerator.eulerianPath(int V, int E) Returns an Eulerian path graph onVvertices.static GraphCreate a graph from input stream.SymbolGraph.G()static GraphGraphGenerator.path(int V) Returns a path graph onVvertices.static GraphGraphGenerator.random(int V, int E) static GraphGraphGenerator.regular(int V, int k) Returns a uniformly randomk-regular graph onVvertices (not necessarily simple).static GraphGraphGenerator.simple(int V, int E) static GraphGraphGenerator.simpleConnected(int V, int E) static GraphGraphGenerator.spanningTree(int V) static GraphGraphGenerator.star(int V) Returns a star graph onVvertices.static GraphGraphGenerator.tree(int V) Returns a uniformly random tree onVvertices.static GraphGraphGenerator.wheel(int V) Returns a wheel graph onVvertices.Modifier and TypeMethodDescriptionstatic intprivate voidprivate voidprivate booleanEulerianCycle.certifySolution(Graph G) private booleanEulerianPath.certifySolution(Graph G) private booleanprivate booleanstatic Graphstatic intprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidDepthFirstPaths.dfsLoopReversed(Graph G, int s) private booleanCycle.hasCycleFrom(Graph G, int u, int v) private booleanCycle.hasCycleFromSimple(Graph G, int u, int v) private booleanCycle.hasParallelEdges(Graph G) private booleanCycle.hasSelfLoop(Graph G) static intprivate static intEulerianCycle.nonIsolatedVertex(Graph G) private static intEulerianPath.nonIsolatedVertex(Graph G) static intXGraphClient.numberOfSelfLoops(Graph G) static voidprivate static booleanEulerianCycle.satisfiesNecessaryAndSufficientConditions(Graph G) The code below is solely for testing correctness of the data type.private static booleanEulerianPath.satisfiesNecessaryAndSufficientConditions(Graph G) The code below is solely for testing correctness of the data type.static voidprivate booleanCycle.TEXTBOOKhasCycleFrom(Graph G, int u, int v) private static voidprivate static voidModifierConstructorDescriptionBreadthFirstPaths(Graph G, int s) BreadthFirstPaths(Graph G, Iterable<Integer> sources) DepthFirstPaths(Graph G, int s) DepthFirstSearch(Graph G, int s) Computes an Eulerian cycle in the specified graph, if one exists.Computes an Eulerian path in the specified graph, if one exists.