Uses of Class
algs42.Digraph
Packages that use Digraph
-
Uses of Digraph in algs42
Modifier and TypeMethodDescriptionstatic DigraphDigraphGenerator.binaryTree(int V) Returns a complete binary tree digraph onVvertices.static DigraphDigraphGenerator.complete(int V) Returns the complete digraph onVvertices.static Digraphstatic DigraphDigraphGenerator.cycle(int V) Returns a cycle digraph onVvertices.static DigraphDigraphGenerator.dag(int V, int E) Returns a random simple DAG containingVvertices andEedges.static DigraphDigraphGenerator.eulerianCycle(int V, int E) Returns an Eulerian cycle digraph onVvertices.static DigraphDigraphGenerator.eulerianPath(int V, int E) Returns an Eulerian path digraph onVvertices.static DigraphSymbolDigraph.G()static DigraphMyEuler.inOutEqual(int V, int E) static DigraphDigraphGenerator.path(int V) Returns a path digraph onVvertices.static DigraphDigraphGenerator.random(int V, int E) Create a random digraph with V vertices and E edges.Digraph.reverse()Return the reverse of the digraph.static DigraphDigraphGenerator.rootedInDAG(int V, int E) Returns a random rooted-in DAG onVvertices andEedges.static DigraphDigraphGenerator.rootedInTree(int V) Returns a random rooted-in tree onVvertices.static DigraphDigraphGenerator.rootedOutDAG(int V, int E) Returns a random rooted-out DAG onVvertices andEedges.static DigraphDigraphGenerator.rootedOutTree(int V) Returns a random rooted-out tree onVvertices.static DigraphDigraphGenerator.simple(int V, double p) Returns a random simple digraph onVvertices, with an edge between any two vertices with probabilityp.static DigraphDigraphGenerator.simple(int V, int E) Returns a random simple digraph containingVvertices andEedges.static DigraphDigraphGenerator.strong(int V, int E, int c) Returns a random simple digraph onVvertices,Eedges and (at most)cstrong components.static DigraphDigraphGenerator.tournament(int V) Returns a random tournament digraph onVvertices.ModifierConstructorDescriptionBreadthFirstDirectedPaths(Digraph G, int s) BreadthFirstDirectedPaths(Digraph G, Iterable<Integer> sources) DepthFirstDirectedPaths(Digraph G, int s) Initializes a new digraph that is a deep copy of the specified digraph.DirectedDFS(Digraph G, int s) DirectedDFS(Digraph G, Iterable<Integer> sources) Computes an Eulerian cycle in the specified digraph, if one exists.Computes an Eulerian path in the specified digraph, if one exists.