Skip to content

Commit

Permalink
less cut nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jul 4, 2023
1 parent f5e80f6 commit 001aacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/untangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ void untangle(

if (!graph.has_previous_step(step)) {
//std::cerr << "start.id = " << graph.get_id(graph.get_handle_of_step(step)) << std::endl;
cut_nodes.set(graph.get_id(graph.get_handle_of_step(step)), true);
//cut_nodes.set(graph.get_id(graph.get_handle_of_step(step)), true);
graph.follow_edges(graph.get_handle_of_step(step), true, [&](const handle_t& h) {
//std::cerr << "start.idX = " << graph.get_id(h) << std::endl;
cut_nodes.set(graph.get_id(h), true);
Expand All @@ -751,7 +751,7 @@ void untangle(

if (!graph.has_next_step(step)) {
//std::cerr << "end.id = " << graph.get_id(graph.get_handle_of_step(step)) << std::endl;
cut_nodes.set(graph.get_id(graph.get_handle_of_step(step)), true);
//cut_nodes.set(graph.get_id(graph.get_handle_of_step(step)), true);
graph.follow_edges(graph.get_handle_of_step(step), false, [&](const handle_t& h) {
//std::cerr << "end.idX = " << graph.get_id(h) << std::endl;
cut_nodes.set(graph.get_id(h), true);
Expand Down

0 comments on commit 001aacd

Please sign in to comment.