diff options
author | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-03-27 18:46:18 +0000 |
---|---|---|
committer | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-03-27 18:46:18 +0000 |
commit | 7f3ea79d26c78c8b2107a6a85feba933bd5512ac (patch) | |
tree | adef85730a69005fa532165877accf9c57bee7ae /src/Rips_complex/example/example_rips_complex_from_fvecs.cpp | |
parent | 6485e6957ef3c9310f618db6caaf2858cc56db66 (diff) |
sb_wrapper working
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/toplex_map@3308 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: c7400a11583b8b67483974664e410f4c77232fb1
Diffstat (limited to 'src/Rips_complex/example/example_rips_complex_from_fvecs.cpp')
-rw-r--r-- | src/Rips_complex/example/example_rips_complex_from_fvecs.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Rips_complex/example/example_rips_complex_from_fvecs.cpp b/src/Rips_complex/example/example_rips_complex_from_fvecs.cpp index 5e7667bd..1b683326 100644 --- a/src/Rips_complex/example/example_rips_complex_from_fvecs.cpp +++ b/src/Rips_complex/example/example_rips_complex_from_fvecs.cpp @@ -1,10 +1,11 @@ #include <gudhi/Rips_complex.h> -// to construct Rips_complex from a fvecs file of points #include <gudhi/Simplex_tree.h> #include <gudhi/Fake_simplex_tree.h> +#include <gudhi/Sb_wrapper.h> #include <gudhi/distance_functions.h> #include <gudhi/Points_fvecs_reader.h> + #include <CGAL/Epick_d.h> #include <iostream> @@ -30,7 +31,8 @@ int main(int argc, char **argv) { using K = CGAL::Epick_d<CGAL::Dynamic_dimension_tag>; using Point = typename K::Point_d; //using Simplex_tree = Gudhi::Simplex_tree<>; - using Simplex_tree = Gudhi::Fake_simplex_tree; + //using Simplex_tree = Gudhi::Fake_simplex_tree; + using Simplex_tree = Gudhi::Sb_wrapper; using Filtration_value = Simplex_tree::Filtration_value; using Rips_complex = Gudhi::rips_complex::Rips_complex<Filtration_value>; using Point_vector = std::vector<Point>; @@ -52,7 +54,7 @@ int main(int argc, char **argv) { end = clock(); std::cout << "Strong witness complex took "<< static_cast<double>(end - start) / CLOCKS_PER_SEC << " s." << std::endl; - std::cout << "Rips complex is of dimension " << stree.dimension() << " - " << stree.num_simplices() << " simplices." << std::endl; + //std::cout << "Rips complex is of dimension " << stree.dimension() << " - " << stree.num_simplices() << " simplices." << std::endl; return 0; } |