summaryrefslogtreecommitdiff
path: root/src/Skeleton_blocker/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/Skeleton_blocker/include')
-rw-r--r--src/Skeleton_blocker/include/gudhi/Skeleton_blocker_complex.h4
-rw-r--r--src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h14
2 files changed, 5 insertions, 13 deletions
diff --git a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_complex.h b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_complex.h
index 02dffc15..15425384 100644
--- a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_complex.h
+++ b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_complex.h
@@ -1422,9 +1422,7 @@ unsigned make_complex_from_top_faces(Complex& complex,SimplexHandleIterator begi
return simplices.size();
}
-
-
-}
+} // namespace skbl
} // namespace GUDHI
diff --git a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h
index d254222d..f70e585d 100644
--- a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h
+++ b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h
@@ -258,19 +258,13 @@ public:
}
/**
- * @brief add the simplex plus all its cofaces
- * @details in the case where sigma is a vertex, the simplex
- * added has an id which is set to the number of vertices
+ * @brief add a maximal simplex plus all its cofaces.
+ * @details the simplex must have dimension greater than one (otherwise use add_vertex or add_edge).
*/
void add_simplex(const Simplex_handle& sigma){
assert(!this->contains(sigma));
- if (sigma.dimension()==0)
- this->add_vertex();
- else
- if (sigma.dimension()==1)
- this->add_edge(sigma.first_vertex(),sigma.last_vertex());
- else
- remove_blocker_include_in_simplex(sigma);
+ assert(sigma.dimension()>1);
+ remove_blocker_include_in_simplex(sigma);
}
private: