diff options
Diffstat (limited to 'src/Nerve_GIC/example/MapperDeltaCoord.cpp')
-rw-r--r-- | src/Nerve_GIC/example/MapperDeltaCoord.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Nerve_GIC/example/MapperDeltaCoord.cpp b/src/Nerve_GIC/example/MapperDeltaCoord.cpp index 84a25bad..9927f762 100644 --- a/src/Nerve_GIC/example/MapperDeltaCoord.cpp +++ b/src/Nerve_GIC/example/MapperDeltaCoord.cpp @@ -32,6 +32,8 @@ void usage(int nbArgs, char * const progName) { int main(int argc, char **argv) { if ((argc != 3) && (argc != 4)) usage(argc, (argv[0] - 1)); + using Point = std::vector<float>; + std::string off_file_name(argv[1]); int coord = atoi(argv[2]); bool verb = 0; if(argc == 4) verb = 1; @@ -40,8 +42,8 @@ int main(int argc, char **argv) { // Init of a Mapper Delta from an OFF file // --------------------------------------- - Gudhi::graph_induced_complex::Graph_induced_complex GIC; - GIC.set_verbose(verb); + Gudhi::graph_induced_complex::Graph_induced_complex<Point> GIC; + GIC.set_verbose(verb); GIC.set_mask(); GIC.set_subsampling(); bool check = GIC.read_point_cloud(off_file_name); @@ -51,16 +53,16 @@ int main(int argc, char **argv) { GIC.set_color_from_coordinate(coord); GIC.set_function_from_coordinate(coord); - GIC.set_graph_from_automatic_rips(); + GIC.set_graph_from_automatic_rips(Gudhi::Euclidean_distance()); GIC.set_automatic_resolution_for_GICMAP(); GIC.set_gain(); GIC.set_cover_from_function(1); GIC.find_GICMAP_simplices_with_functional_minimal_cover(); - GIC.plot_txt(); + GIC.plot_pdf(); - Simplex_tree stree; GIC.create_complex(stree); + Gudhi::graph_induced_complex::Simplex_tree stree; GIC.create_complex(stree); std::streambuf* streambufffer = std::cout.rdbuf(); std::ostream output_stream(streambufffer); |