Skip to content

Add Cycle/Loop Detection in Message Flow Graph#73

Merged
lowhung merged 1 commit into
mainfrom
issue-32-cycle-detection
Feb 8, 2026
Merged

Add Cycle/Loop Detection in Message Flow Graph#73
lowhung merged 1 commit into
mainfrom
issue-32-cycle-detection

Conversation

@lowhung

@lowhung lowhung commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Detect strongly connected components using Tarjan's algorithm (petgraph::algo::tarjan_scc)
  • Add detect_cycles(), is_in_cycle(), and cycle_edges() methods to MessageFlowGraph
  • Add cycle detection panel listing detected cycles with node paths
  • Add "Cycles" toggle button in the UI toolbar

Closes #32

Test plan

  • cargo test - 94 tests pass (5 new cycle detection tests)
  • cargo clippy --all-targets --all-features -- -D warnings - clean
  • cargo fmt - clean
  • Manual verification with cyclic graph topology

Detect strongly connected components using Tarjan's algorithm to
identify feedback loops and circular dependencies. Adds a cycle
detection panel with toggle in the UI toolbar.

Closes #32
@lowhung lowhung merged commit 21d1687 into main Feb 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cycle/loop detection in message flow

1 participant