summaryrefslogtreecommitdiff
path: root/src/Toplex_map/include/gudhi/Lazy_Toplex_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toplex_map/include/gudhi/Lazy_Toplex_map.h')
-rw-r--r--src/Toplex_map/include/gudhi/Lazy_Toplex_map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Toplex_map/include/gudhi/Lazy_Toplex_map.h b/src/Toplex_map/include/gudhi/Lazy_Toplex_map.h
index 9aa163f9..434fea47 100644
--- a/src/Toplex_map/include/gudhi/Lazy_Toplex_map.h
+++ b/src/Toplex_map/include/gudhi/Lazy_Toplex_map.h
@@ -57,6 +57,10 @@ public:
/** \brief Number of maximal simplices. */
std::size_t num_maximal_simplices() const;
+ /** \brief Number of vertices. */
+ std::size_t num_vertices() const{
+ return t0.size();
+ }
std::unordered_map<Vertex, std::size_t> gamma0_lbounds;
private: