Package algs42
Class DirectedCycle
java.lang.Object
algs42.DirectedCycle
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
cycle()
boolean
hasCycle()
private boolean
hasCycleFrom
(Digraph G, int u, int v) private boolean
hasCycleFromSimple
(Digraph G, int v) static void
private boolean
TEXTBOOKhasCycleFrom
(Digraph G, int u, int v)
-
Field Details
-
marked
-
edgeTo
-
onStack
-
cycle
-
-
Constructor Details
-
DirectedCycle
-
-
Method Details
-
hasCycleFromSimple
-
hasCycleFrom
-
TEXTBOOKhasCycleFrom
-
hasCycle
-
cycle
-
check
-
main
-