1 parent 5ae9b95 commit b71ae12Copy full SHA for b71ae12
1 file changed
src/lib.rs
@@ -334,7 +334,7 @@ pub mod graphsim {
334
335
other_nbs.intersect_with(&node_nbs);
336
for (idx, i) in other_nbs.iter().enumerate() {
337
- for j in other_nbs.iter().skip(idx) {
+ for j in other_nbs.iter().skip(idx + 1) {
338
self.toggle_edge(i, j);
339
}
340
@@ -360,7 +360,7 @@ pub mod graphsim {
360
361
362
for (idx, i) in adj.iter().enumerate() {
363
- for j in adj.iter().skip(idx).chain(once(node)) {
+ for j in adj.iter().skip(idx + 1).chain(once(node)) {
364
365
366
0 commit comments