diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-14 13:27:02 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-14 13:27:02 +0000 |
commit | de2573cf2b2eb92cff628d9690a067b50b4ca145 (patch) | |
tree | 1b9ec11f5fcb1e4a2bd08ea48f7ea26fb3733f1e /src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp | |
parent | d9895d13cecf61de78a1c812bfb80bbc2778e7a6 (diff) |
Rollback pointer modification, and use of of a hack for no deep copy of boost graph
"voidification" of create_complex method
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/distance_matrix_in_rips_module@1868 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 3667c8f57388dec0300d1fed8bf1b063843727dd
Diffstat (limited to 'src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp')
-rw-r--r-- | src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp b/src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp index 02bffe0d..326ad52f 100644 --- a/src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp +++ b/src/Rips_complex/example/example_one_skeleton_rips_from_distance_matrix.cpp @@ -45,24 +45,24 @@ int main(int argc, char **argv) { Rips_complex rips_complex_from_points(distances, threshold); Simplex_tree stree; - if (rips_complex_from_points.create_complex(stree, 1)) { - // ---------------------------------------------------------------------------- - // Display information about the one skeleton rips complex - // ---------------------------------------------------------------------------- - std::cout << "Rips complex is of dimension " << stree.dimension() << - " - " << stree.num_simplices() << " simplices - " << - stree.num_vertices() << " vertices." << std::endl; + rips_complex_from_points.create_complex(stree, 1); + // ---------------------------------------------------------------------------- + // Display information about the one skeleton rips complex + // ---------------------------------------------------------------------------- + std::cout << "Rips complex is of dimension " << stree.dimension() << + " - " << stree.num_simplices() << " simplices - " << + stree.num_vertices() << " vertices." << std::endl; - std::cout << "Iterator on rips complex simplices in the filtration order, with [filtration value]:" << - std::endl; - for (auto f_simplex : stree.filtration_simplex_range()) { - std::cout << " ( "; - for (auto vertex : stree.simplex_vertex_range(f_simplex)) { - std::cout << vertex << " "; - } - std::cout << ") -> " << "[" << stree.filtration(f_simplex) << "] "; - std::cout << std::endl; + std::cout << "Iterator on rips complex simplices in the filtration order, with [filtration value]:" << + std::endl; + for (auto f_simplex : stree.filtration_simplex_range()) { + std::cout << " ( "; + for (auto vertex : stree.simplex_vertex_range(f_simplex)) { + std::cout << vertex << " "; } + std::cout << ") -> " << "[" << stree.filtration(f_simplex) << "] "; + std::cout << std::endl; } + return 0; } |