Skip to content

Commit

Permalink
faster min_node_support when support is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Sep 21, 2023
1 parent 2eac75a commit d2d9ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traversal_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ Support PackedTraversalSupportFinder::get_min_node_support(id_t node) const {
size_t offset = packer.position_in_basis(pos);
size_t coverage = packer.coverage_at_position(offset);
size_t end_offset = offset + graph.get_length(graph.get_handle(node));
for (int i = offset + 1; i < end_offset; ++i) {
for (int i = offset + 1; i < end_offset && coverage > 0; ++i) {
coverage = min(coverage, packer.coverage_at_position(i));
}
Support support;
Expand Down

1 comment on commit d2d9ae0

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch glenn. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 17489 seconds

Please sign in to comment.