Skip to content

Commit 4cf6009

Browse files
Merge pull request #24 from pangenome/impolite_graphs
do not push wrong ranges in the stack
2 parents 9a1092a + 56a8e66 commit 4cf6009

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/impg.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ impl Impg {
299299
}
300300
);
301301
results.push(adjusted_interval);
302-
}
303302

304-
if metadata.query_id != current_target {
305-
let todo_range = (metadata.query_id, adjusted_query_start, adjusted_query_end);
306-
if !visited.insert(todo_range) {
307-
stack.push(todo_range);
303+
if metadata.query_id != current_target {
304+
let todo_range = (metadata.query_id, adjusted_query_start, adjusted_query_end);
305+
if !visited.insert(todo_range) {
306+
stack.push(todo_range);
307+
}
308308
}
309309
}
310310
});

0 commit comments

Comments
 (0)