diff --git a/clip-vg.cpp b/clip-vg.cpp index 4c90983..200e7ed 100644 --- a/clip-vg.cpp +++ b/clip-vg.cpp @@ -711,6 +711,12 @@ void forwardize_paths(MutablePathMutableHandleGraph* graph, const string& ref_pr handle_t handle = graph->get_handle_of_step(step_handle); if (graph->get_is_reverse(handle)) { handle_t flipped_handle = graph->create_handle(graph->get_sequence(handle)); + graph->follow_edges(handle, true, [&](handle_t prev_handle) { + graph->create_edge(prev_handle, flipped_handle); + }); + graph->follow_edges(handle, false, [&](handle_t next_handle) { + graph->create_edge(flipped_handle, next_handle); + }); vector steps = graph->steps_of_handle(handle); size_t ref_count = 0; for (step_handle_t step : steps) {