Cycle
A cycle is a recurring sequence of connected elements or events that returns to an earlier point, forming a loop.
Grokking Data Structures
A cycle is a path in a graph that starts and ends at the same vertex.
- How it is used
- Uses cycle detection to determine whether a graph is acyclic.
- How deep it goes
- Defines cycles through paths, distinguishes loops, and explains DFS color states for detecting them.
- Examples
- Uses a follower graph involving Giraffe, Crocodile, and Monkey to show both longer and smaller cycles.
- What you can do after
- Diagnose/debug with it by recognizing cycles and applying DFS color marking to test graph acyclicity.
Optimization Algorithms: AI techniques for design, planning, and control problems
A cycle is a closed path in a graph that begins and ends at the same vertex.
- How it is used
- Supports graph classification and dependency analysis, especially when checking whether task schedules contain circular precedence constraints.
- How deep it goes
- Defines cycles and contrasts them with acyclic graphs, but does not develop cycle-detection algorithms beyond an acyclicity check.
- Examples
- Uses a small NetworkX graph with vertices 1, 2, and 3 forming a cycle, alongside a directed acyclic scheduling graph.
- What you can do after
- Evaluate graph structure by recognizing cycles and verifying whether a directed graph is acyclic with NetworkX.
Graph Neural Networks in Action
A cycle is a graph path that begins and ends at the same node without repeating intermediate nodes.
- How it is used
- Classifies graph structure and flags cyclic patterns during data validation for graph analytics and machine learning.
- How deep it goes
- Defines return paths, contrasts cyclic and acyclic graphs, and stops short of algorithmic cycle detection.
- Examples
- Uses the path A-E-D-C-B-A and an isolated candidate group whose relationships form a cycle.
- What you can do after
- Diagnose graph data by identifying cycles and checking whether analytical tools handle isolated cyclic groups.
100 Java Mistakes and How to Avoid Them
A cycle is a path in a graph or linked data structure that eventually returns to an element already visited.
- How it is used
- Frames cycles as a hazard when recursively traversing structures expected to be trees or directed acyclic graphs.
- How deep it goes
- Explains repeated state, stack growth, StackOverflowError, visited-node tracking, and self-referential collection behavior.
- Examples
- Uses self-referential lists, indirect collection cycles, recursive tree traversal, and finite-versus-infinite recursion diagrams.
- What you can do after
- Diagnose infinite recursion by checking for cycles, track visited elements when cycles are legal, or repair unintended structure mutations.
Read how 100 Java Mistakes and How to Avoid Them explains cycle →
Outlier Detection in Python
A recurring temporal pattern in which values or behavior repeat over successive periods.
- How it is used
- Uses recurring patterns to provide temporal context for time-series outlier detection.
- How deep it goes
- Explains variable-length repetition, contrasts seasonality, and applies decomposition without deriving its internals.
- Examples
- Uses temperatures, network traffic, sales calendars, and regularly repeating spikes as concrete cases.
- What you can do after
- Apply it via time-series decomposition to separate recurring structure from residual behavior and assess contextual anomalies.
Related concepts
- edgekind of · An edge is a graph connection between two vertices that represents a relationship and may be directed, labeled, or weighted.
- depth-first searchaddressed by · Depth-first search is a graph or tree traversal algorithm that explores one branch as far as possible before backtracking to explore alternatives.
- symbolic linkproduced by · A symbolic link is a filesystem object that refers to another filesystem path rather than containing the referenced file or directory's contents.
- treecontrasts with · A tree is a connected, acyclic structure of nodes, commonly organized hierarchically through parent-child relationships and optionally around a designated root.
- pathkind of · A path is an ordered sequence of connected elements representing a route through a graph, structure, or space.
- resource allocation graphpart of · A resource allocation graph is a directed graph whose nodes represent processes or executions and resources, with edges representing resource requests and assignments.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




