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 intstatic Graphstatic intstatic intstatic intXGraphClient.numberOfSelfLoops(Graph G) static voidstatic 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.