A Directed Cycle in Prerequisites
A directed cycle among prerequisite edges makes it impossible to satisfy all of them by placing every prerequisite first.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Show the contradiction
If prepare precedes compile, compile precedes package, and package precedes prepare, any proposed first task needs another one before it. Dependency ordering relies on excluding such cycles.
Give the witness to the caller
Reporting the sequence prepare, compile, package, prepare is more actionable than marking the whole plan invalid. Path recovery illustrates how stored references can reconstruct a concrete route from a traversal.[1]
Trace a waiting chain back to its first task
Suppose review depends on draft, draft depends on a figure, and the figure cannot be produced until review finishes. Each of those tasks waits on another along a cycle. A printable cycle gives someone concrete requirements to revise. See dependency ordering.
Figure → Draft → Review → Figure under prerequisite-first arrows
At start, each task in the cycle has internal indegree one
No task in this cycle can be first
Separate cyclic tasks from blocked downstream tasks
A publication task depending on review may also remain unfinished even though it lies on no cycle itself. Inspect strongly connected groups or report an actual cycle path instead of labeling every unresolved task cyclic.