Uses of Class
algs42.Digraph
-
Uses of Digraph in algs42
Modifier and TypeMethodDescriptionstatic Digraph
DigraphGenerator.binaryTree
(int V) Returns a complete binary tree digraph onV
vertices.static Digraph
DigraphGenerator.complete
(int V) Returns the complete digraph onV
vertices.static Digraph
static Digraph
DigraphGenerator.cycle
(int V) Returns a cycle digraph onV
vertices.static Digraph
DigraphGenerator.dag
(int V, int E) Returns a random simple DAG containingV
vertices andE
edges.static Digraph
DigraphGenerator.eulerianCycle
(int V, int E) Returns an Eulerian cycle digraph onV
vertices.static Digraph
DigraphGenerator.eulerianPath
(int V, int E) Returns an Eulerian path digraph onV
vertices.static Digraph
SymbolDigraph.G()
static Digraph
MyEuler.inOutEqual
(int V, int E) static Digraph
DigraphGenerator.path
(int V) Returns a path digraph onV
vertices.static Digraph
DigraphGenerator.random
(int V, int E) Create a random digraph with V vertices and E edges.Digraph.reverse()
Return the reverse of the digraph.static Digraph
DigraphGenerator.rootedInDAG
(int V, int E) Returns a random rooted-in DAG onV
vertices andE
edges.static Digraph
DigraphGenerator.rootedInTree
(int V) Returns a random rooted-in tree onV
vertices.static Digraph
DigraphGenerator.rootedOutDAG
(int V, int E) Returns a random rooted-out DAG onV
vertices andE
edges.static Digraph
DigraphGenerator.rootedOutTree
(int V) Returns a random rooted-out tree onV
vertices.static Digraph
DigraphGenerator.simple
(int V, double p) Returns a random simple digraph onV
vertices, with an edge between any two vertices with probabilityp
.static Digraph
DigraphGenerator.simple
(int V, int E) Returns a random simple digraph containingV
vertices andE
edges.static Digraph
DigraphGenerator.strong
(int V, int E, int c) Returns a random simple digraph onV
vertices,E
edges and (at most)c
strong components.static Digraph
DigraphGenerator.tournament
(int V) Returns a random tournament digraph onV
vertices.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.