diff options
Diffstat (limited to 'src/Rips_complex/example')
-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; } |