summaryrefslogtreecommitdiff
path: root/src/Nerve_GIC/example/MapperDeltaCoord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Nerve_GIC/example/MapperDeltaCoord.cpp')
-rw-r--r--src/Nerve_GIC/example/MapperDeltaCoord.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Nerve_GIC/example/MapperDeltaCoord.cpp b/src/Nerve_GIC/example/MapperDeltaCoord.cpp
index 950ee58a..c4d86caf 100644
--- a/src/Nerve_GIC/example/MapperDeltaCoord.cpp
+++ b/src/Nerve_GIC/example/MapperDeltaCoord.cpp
@@ -3,7 +3,7 @@
void usage(int nbArgs, char * const progName) {
std::cerr << "Error: Number of arguments (" << nbArgs << ") is not correct\n";
std::cerr << "Usage: " << progName << " filename.off coordinate \n";
- std::cerr << " i.e.: " << progName << " ../../../data/points/human.off 2 --v \n";
+ std::cerr << " i.e.: " << progName << " ../../../../data/points/human.off 2 --v \n";
exit(-1); // ----- >>
}
@@ -21,10 +21,12 @@ int main(int argc, char **argv) {
Gudhi::graph_induced_complex::Graph_induced_complex GIC;
GIC.set_verbose(verb);
- GIC.set_color_from_coordinate(off_file_name, coord);
- GIC.set_function_from_coordinate(coord, off_file_name);
+ GIC.read_point_cloud(off_file_name);
- GIC.set_graph_from_automatic_rips(off_file_name);
+ GIC.set_color_from_coordinate(coord);
+ GIC.set_function_from_coordinate(coord);
+
+ GIC.set_graph_from_automatic_rips();
GIC.set_automatic_resolution_for_GICMAP(); GIC.set_gain();
GIC.set_cover_from_function(1);