-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Severity: MEDIUM
File: src/nthlayer/slos/dependencies.py:309-343
Category: Logic error
detect_circular_dependencies creates a fresh visited set for each starting node. Cycle A->B->C->A is detected three times (starting from A, B, and C), producing three duplicate entries. For large graphs with many cycles, this also causes O(V*(V+E)) performance.
Fix: Share visited set across starting nodes and normalize detected cycles (start from lexicographically smallest node) to deduplicate. Or use Tarjan's/Johnson's algorithm.
Beads: trellis-iyhy
Reactions are currently unavailable