Package algs41
Class Cycle
java.lang.Object
algs41.Cycle
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncycle()
boolean
hasCycle()
private boolean
hasCycleFrom
(Graph G, int u, int v) private boolean
hasCycleFromSimple
(Graph G, int u, int v) private boolean
private boolean
hasSelfLoop
(Graph G) static void
private boolean
TEXTBOOKhasCycleFrom
(Graph G, int u, int v)
-
Field Details
-
marked
-
edgeTo
-
cycle
-
-
Constructor Details
-
Cycle
-
-
Method Details
-
hasCycleFromSimple
-
hasCycleFrom
-
TEXTBOOKhasCycleFrom
-
hasSelfLoop
-
hasParallelEdges
-
hasCycle
-
cycle
-
main
-