Description
Implement algorithms to detect cycles, find all cycles, detect negative cycles, and compute graph girth (shortest cycle length).
Tasks
Acceptance Criteria
- Cycle detection works for both directed and undirected graphs
- Negative cycles are correctly identified in weighted graphs
- Girth computation works for graphs with cycles
- All cycles can be found for small graphs (<15 nodes)
- Proper handling of acyclic graphs
Description
Implement algorithms to detect cycles, find all cycles, detect negative cycles, and compute graph girth (shortest cycle length).
Tasks
Acceptance Criteria