summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-03-29 18:31:38 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-03-29 18:31:38 -0400
commitf0d8192d387c99dd766484883abe307d4bbe7807 (patch)
tree8c5cfae1d6074c913bf29922a5f22a21f9eae6e0
parentdce522cf05db852d236b5528a3c924e0c90fcba5 (diff)
downloadfuse_networks-f0d8192d387c99dd766484883abe307d4bbe7807.tar.gz
fuse_networks-f0d8192d387c99dd766484883abe307d4bbe7807.tar.bz2
fuse_networks-f0d8192d387c99dd766484883abe307d4bbe7807.zip
Fixed bug in bowtie flap finder that sometimes missed one bond.
-rw-r--r--lib/src/network.cpp2
1 files changed, 1 insertions, 1 deletions
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<unsigned>& added_edges, unsigned v0,
const std::array<unsigned, 2>& 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);
}
}