diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-03-19 07:47:18 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-03-19 07:47:18 +0100 |
commit | 1142403db4ba255e0f5c9f8082a158780df51148 (patch) | |
tree | 88d0d5453599ee43934a4305ad53f80dc9bc3748 /src/Collapse/example | |
parent | c8ae4d46d42340140d8687994f322d288e47a3bb (diff) |
some cleanups
Diffstat (limited to 'src/Collapse/example')
-rw-r--r-- | src/Collapse/example/rips_persistence_with_sc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Collapse/example/rips_persistence_with_sc.cpp b/src/Collapse/example/rips_persistence_with_sc.cpp index a462dcea..f16588cf 100644 --- a/src/Collapse/example/rips_persistence_with_sc.cpp +++ b/src/Collapse/example/rips_persistence_with_sc.cpp @@ -9,7 +9,6 @@ // Types definition using Vector_of_points = std::vector<Point>; -using Vector_of_SM_pointers = std::vector<FlagComplexSpMatrix*>; using Simplex_tree = Gudhi::Simplex_tree<Gudhi::Simplex_tree_options_fast_persistence>; using Filtration_value = double; @@ -130,12 +129,12 @@ int main(int argc, char * const argv[]) { //Now we will perform filtered edge collapse to sparsify the edge list edge_t. std::cout<< "Filtered edge collapse begins" << std::endl; - FlagComplexSpMatrix * mat_filt_edge_coll = new FlagComplexSpMatrix(number_of_points,*edge_t,true); + FlagComplexSpMatrix * mat_filt_edge_coll = new FlagComplexSpMatrix(number_of_points,*edge_t); std::cout<< "Matrix instansiated" << std::endl; if(edge_t->size() >0){ delete edge_t; edge_t = new Filtered_sorted_edge_list(); - *edge_t = mat_filt_edge_coll->filtered_edge_collapse(0); + *edge_t = mat_filt_edge_coll->filtered_edge_collapse(); filt_edge_to_dist_matrix(*sparse_distances, *edge_t, number_of_points); std::cout << "Total number of vertices after collapse in the sparse matrix are: " << mat_filt_edge_coll->num_vertices() << std::endl; } |