diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-10-15 18:56:59 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-10-15 18:56:59 +0000 |
commit | c3bdde667d7249dc3325cf76c2813272df4adf8f (patch) | |
tree | 6c8e501b710d5bb0e13e7171843601ce0fc4d587 /src/Toplex_map/include/gudhi/Lazy_Toplex_map.h | |
parent | 0b903a02242c935e7621006818e9f9dc442f0e79 (diff) |
Add num_vertices method
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/toplex_map@3951 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: f91b42722e47c05da799ac40038f9f12eb70f974
Diffstat (limited to 'src/Toplex_map/include/gudhi/Lazy_Toplex_map.h')
-rw-r--r-- | src/Toplex_map/include/gudhi/Lazy_Toplex_map.h | 4 |
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: |