From f0d8192d387c99dd766484883abe307d4bbe7807 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 29 Mar 2020 18:31:38 -0400 Subject: Fixed bug in bowtie flap finder that sometimes missed one bond. --- lib/src/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/src') diff --git a/lib/src/network.cpp b/lib/src/network.cpp index 8944c15..58dde78 100644 --- a/lib/src/network.cpp +++ b/lib/src/network.cpp @@ -214,8 +214,8 @@ void network::get_tie_flaps_helper(std::set& added_edges, unsigned v0, const std::array& e = G.edges[ei].v; unsigned vn = e[0] == vCur ? e[1] : e[0]; + added_edges.insert(ei); if (vn != v0) { - added_edges.insert(ei); this->get_tie_flaps_helper(added_edges, v0, vn); } } -- cgit v1.2.3-70-g09d2