Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Jan 31, 2025
1 parent 3948472 commit 5f59870
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/traversal_clusters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,9 @@ static void simplify_snarl_using_traversals(MutablePathMutableHandleGraph* graph
vector<bool> trav_reversed(path_travs.size());
vector<int64_t> trav_lengths(path_travs.size(), 0);

//#ifdef debug
#ifdef debug
cerr << "snarl " << graph_interval_to_string(graph, start_handle, end_handle) << endl;
//#endif
#endif

// fill out traversal information (copied from merge_equivalent_traversals_in_snarl() above)
// and find the reference traversal
Expand All @@ -492,13 +492,13 @@ static void simplify_snarl_using_traversals(MutablePathMutableHandleGraph* graph
trav_reversed[i] = graph->get_is_reverse(graph->get_handle_of_step(path_intervals[i].first)) !=
graph->get_is_reverse(start_handle);

//#ifdef debug
#ifdef debug
cerr << "trav " << i << ": "
<< "n=" << trav_names[i] << " "
<< "i=" << graph_interval_to_string(graph, graph->get_handle_of_step(path_intervals[i].first),
graph->get_handle_of_step(path_intervals[i].second))
<< " t=" << traversal_to_string(graph, trav, 100) << endl;
//#endif
#endif

// note: we are excluding snarl boundaries from length calc here
for (int64_t j = 1; j < trav.size() - 1; ++j) {
Expand Down Expand Up @@ -613,7 +613,7 @@ static void simplify_snarl_using_traversals(MutablePathMutableHandleGraph* graph
for (int i = 0; i < trav_clusters.size(); ++i) {
const Traversal& cluster_ref_trav = path_travs[trav_clusters[i][0]];
if (i > 0) {
for (int64_t j = 0; i < cluster_ref_trav.size(); ++j) {
for (int64_t j = 0; j < cluster_ref_trav.size(); ++j) {
ref_nodes.insert(graph->get_id(cluster_ref_trav[j]));
if (j > 0) {
ref_edges.insert(graph->edge_handle(cluster_ref_trav[j-1], cluster_ref_trav[j]));
Expand Down

1 comment on commit 5f59870

@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 simplify2. View the full report here.

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

Please sign in to comment.