Skip to content

Commit b71ae12

Browse files
committed
fixup! simplify measurements
1 parent 5ae9b95 commit b71ae12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ pub mod graphsim {
334334

335335
other_nbs.intersect_with(&node_nbs);
336336
for (idx, i) in other_nbs.iter().enumerate() {
337-
for j in other_nbs.iter().skip(idx) {
337+
for j in other_nbs.iter().skip(idx + 1) {
338338
self.toggle_edge(i, j);
339339
}
340340
}
@@ -360,7 +360,7 @@ pub mod graphsim {
360360
}
361361

362362
for (idx, i) in adj.iter().enumerate() {
363-
for j in adj.iter().skip(idx).chain(once(node)) {
363+
for j in adj.iter().skip(idx + 1).chain(once(node)) {
364364
self.toggle_edge(i, j);
365365
}
366366
}

0 commit comments

Comments
 (0)