Commit ca85966
committed
fix(depgraph): detect a measure that references itself as a cycle
Symptom: a model containing 'M1 = [M1] + 1' passed the cycle check and the gate
reported no circular dependency, while the real engine refuses to refresh it.
Root cause: add_edge dropped any edge whose endpoints were equal, so the self loop
never reached the Tarjan pass and the single node component never triggered the self
edge branch. Self edges are now stored.1 parent a1f31d5 commit ca85966
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments