summaryrefslogtreecommitdiff
path: root/src/Toplex_map
diff options
context:
space:
mode:
authorfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-10-13 10:08:55 +0000
committerfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-10-13 10:08:55 +0000
commit8fd07bda067d82fd0d345c3bde0dce7de18a6722 (patch)
tree54f3fc0d845b6393a6769646b8fedb3a9a0005b3 /src/Toplex_map
parent64b6499858101c47374a9a6b24dd8ec001147982 (diff)
cmakelists
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/toplex_map@2786 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 83c6616972403884967c825f20155cecf124c39e
Diffstat (limited to 'src/Toplex_map')
-rw-r--r--src/Toplex_map/include/gudhi/Fake_simplex_tree.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Toplex_map/include/gudhi/Fake_simplex_tree.h b/src/Toplex_map/include/gudhi/Fake_simplex_tree.h
index 60f8981a..10ef39d7 100644
--- a/src/Toplex_map/include/gudhi/Fake_simplex_tree.h
+++ b/src/Toplex_map/include/gudhi/Fake_simplex_tree.h
@@ -26,7 +26,7 @@ public:
void expansion(int max_dim);
/** \brief Returns the number of vertices in the simplicial complex. */
- std::size_t num_vertices();
+ std::size_t num_vertices() const;
Simplex_ptr_set candidates() const;
@@ -34,7 +34,7 @@ public:
std::size_t num_simplices() const;
- std::size_t num_vertices() const;
+ void set_dimension(int d);
Simplex simplex_vertex_range(Simplex_ptr &sptr) const;
@@ -59,6 +59,10 @@ protected:
};
+void Fake_simplex_tree::set_dimension(int d){
+
+}
+
template<class OneSkeletonGraph>
void Fake_simplex_tree::insert_graph(const OneSkeletonGraph& skel_graph){
typename boost::graph_traits<OneSkeletonGraph>::edge_iterator e_it,
@@ -149,6 +153,11 @@ Simplex Fake_simplex_tree::simplex_vertex_range(Simplex_ptr& sptr) const {
std::unordered_set<Simplex_ptr> Fake_simplex_tree::filtration_simplex_range() const{
std::vector<Simplex_ptr> m = max_simplices();
+ std::cout << m.size()<< std::endl;
+ std::cout << m.size()<< std::endl;
+
+ std::cout << m.size()<< std::endl;
+
std::unordered_set<Simplex_ptr> seen;
while(m.begin()!=m.end()){
Simplex_ptr& sptr = m.back();