From 6eb48ea4e36e588c5af75040d5640e92bf02172c Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Mon, 25 May 2020 15:33:59 +0200 Subject: Code review: rename check_edge_domination as edge_is_dominated --- src/Collapse/include/gudhi/Flag_complex_sparse_matrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Collapse') diff --git a/src/Collapse/include/gudhi/Flag_complex_sparse_matrix.h b/src/Collapse/include/gudhi/Flag_complex_sparse_matrix.h index 35906216..ea2c6dcc 100644 --- a/src/Collapse/include/gudhi/Flag_complex_sparse_matrix.h +++ b/src/Collapse/include/gudhi/Flag_complex_sparse_matrix.h @@ -111,7 +111,7 @@ class Flag_complex_sparse_matrix { std::vector f_edge_vector_; // Edge e is the actual edge (u,v). Not the row ids in the matrixs - bool check_edge_domination(const Edge& edge) const + bool edge_is_dominated(const Edge& edge) const { Vertex_handle u = std::get<0>(edge); Vertex_handle v = std::get<1>(edge); @@ -194,7 +194,7 @@ class Flag_complex_sparse_matrix { if (!critical_edge_indicator_[idx]) { // If idx is affected if (effected_indices.find(idx) != effected_indices.end()) { - if (!check_edge_domination(edge)) { + if (!edge_is_dominated(edge)) { #ifdef DEBUG_TRACES std::cout << "The curent index became critical " << idx << std::endl; #endif // DEBUG_TRACES @@ -387,7 +387,7 @@ class Flag_complex_sparse_matrix { edge_to_index_map_.emplace(std::minmax(u, v), endIdx); critical_edge_indicator_.push_back(false); - if (!check_edge_domination(edge)) { + if (!edge_is_dominated(edge)) { critical_edge_indicator_[endIdx] = true; filtered_edge_insert({u, v}, filt); if (endIdx > 1) -- cgit v1.2.3