Skip to content

Commit 0b6d16c

Browse files
committed
Remove remaining debug_assert calls
Fix #332.
1 parent 0b44f86 commit 0b6d16c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/kuhn_munkres.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ where
128128
y = yy;
129129
}
130130
}
131-
debug_assert!(s.contains(x));
132131
// If some slack has been found, remove it from x nodes in the
133132
// alternating path, and add it to y nodes in the alternating path.
134133
// The slack of y nodes outside the alternating path will be reduced
@@ -145,7 +144,6 @@ where
145144
}
146145
}
147146
}
148-
debug_assert!(lx[x] + ly[y] == weights.at(x, y));
149147
// Add (x, y) to the alternating path.
150148
alternating[y] = Some(x);
151149
if yx[y].is_none() {
@@ -155,7 +153,6 @@ where
155153
// This y node had a predecessor, add it to the set of x nodes
156154
// in the augmenting path.
157155
let x = yx[y].unwrap();
158-
debug_assert!(!s.contains(x));
159156
s.insert(x);
160157
// Update slack because of the added vertex in s might contain a
161158
// greater slack than with previously inserted x nodes in the augmenting

0 commit comments

Comments
 (0)