Skip to content

Commit

Permalink
Merge pull request #24 from pangenome/impolite_graphs
Browse files Browse the repository at this point in the history
do not push wrong ranges in the stack
  • Loading branch information
AndreaGuarracino authored Sep 21, 2024
2 parents 9a1092a + 56a8e66 commit 4cf6009
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/impg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ impl Impg {
}
);
results.push(adjusted_interval);
}

if metadata.query_id != current_target {
let todo_range = (metadata.query_id, adjusted_query_start, adjusted_query_end);
if !visited.insert(todo_range) {
stack.push(todo_range);
if metadata.query_id != current_target {
let todo_range = (metadata.query_id, adjusted_query_start, adjusted_query_end);
if !visited.insert(todo_range) {
stack.push(todo_range);
}
}
}
});
Expand Down

0 comments on commit 4cf6009

Please sign in to comment.