fix: harden maximum-flow allocations (#2123)#2124
Conversation
|
🏷️ Auto-labeled based on changed files:
Labels are automatically applied based on which files were modified. You can add or remove labels as needed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe maximum-flow implementation now separates validation, residual graph construction, and Edmonds-Karp augmentation. It uses deterministic sorted lookups, checked sizing, fallible allocations, structured allocation errors, and expanded overflow and reservation tests. ChangesMaximum-flow allocation hardening
Estimated code review effort: 4 (Complex) | ~45 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
db0ff4a to
13244f6
Compare
|
🏷️ Auto-labeled based on changed files:
Labels are automatically applied based on which files were modified. You can add or remove labels as needed. |
13244f6 to
d689c8c
Compare
|
🏷️ Auto-labeled based on changed files:
Labels are automatically applied based on which files were modified. You can add or remove labels as needed. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Description
Harden the shared maximum-flow solution against allocation and size-overflow failures while preserving exact Edmonds-Karp behavior and the scalar/per-edge result contract.
Type of Change
Related Issues
Closes #2123
Changes Made
Testing
Checklist
Reviewer Notes
Focus on preserved residual-capacity/order semantics and error atomicity across every fallible reservation.
Summary by CodeRabbit
Bug Fixes
Tests