Skip to content

Commit

Permalink
Merge pull request #319 from pangenome/fix_another_apply_ordering_bug
Browse files Browse the repository at this point in the history
FIx the `_min_node_id` value in the `apply_ordering` method
  • Loading branch information
AndreaGuarracino authored Sep 14, 2021
2 parents 9bbddfc + 72c6ae4 commit 4a9486d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/odgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ void graph_t::apply_ordering(const std::vector<handle_t>& order_in, bool compact

// now we actually apply the ordering to our node_v, while removing deleted slots
std::vector<node_t*> new_node_v; //(order->size());
_min_node_id = 1;
if (compact_ids) {
uint64_t j = 0;
for (uint64_t i = 0; i < node_v.size(); ++i) {
Expand Down

0 comments on commit 4a9486d

Please sign in to comment.