You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix error in implementation of Erdos-Gallai condition in isgraphical (#415)
* Fix error in implementation of Erdos-Gallai condition in isgraphical
# Error in current implementation
`mindeg` is computed globally at the start using `min(i, sorted_degs[i])` for all indices. However, the Erdös-Gallai condition requires dynamically calculating `min(r, sorted_degs[i])` for vertices after the current index `r`.
# What changed
* Update the Erdös-Gallai condition check to calculate the sum of the minimum of r and the degrees of the vertices.
* Add a test case in `test/connectivity.jl` to verify that `isgraphical` returns false for the sequence [4,2,2,2,0].
0 commit comments