From ea456198c097befe99ffa0d28d8f61a775f76ab7 Mon Sep 17 00:00:00 2001 From: Xian Hui Chang Date: Thu, 27 Nov 2025 10:38:45 +0100 Subject: [PATCH] Return the value of the graph's follow_edges in follow_net_edges --- bdsg/src/snarl_distance_index.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bdsg/src/snarl_distance_index.cpp b/bdsg/src/snarl_distance_index.cpp index 2f65b0a0..44290c0e 100644 --- a/bdsg/src/snarl_distance_index.cpp +++ b/bdsg/src/snarl_distance_index.cpp @@ -868,7 +868,9 @@ bool SnarlDistanceIndex::follow_net_edges_impl(const net_handle_t& here, const h #ifdef debug_snarl_traversal cerr << " traversing graph from actual node " << graph->get_id(graph_handle) << (graph->get_is_reverse(graph_handle) ? "rev" : "fd") << endl; #endif - graph->follow_edges(graph_handle, false, [&](const handle_t& h) { + + // Follow edges in the graph. Return the return value of graph follow_edges + return graph->follow_edges(graph_handle, false, [&](const handle_t& h) { #ifdef debug_snarl_traversal cerr << " reached actual node " << graph->get_id(h) << (graph->get_is_reverse(h) ? "rev" : "fd") << endl; #endif