diff options
author | mcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-04-20 14:22:38 +0000 |
---|---|---|
committer | mcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-04-20 14:22:38 +0000 |
commit | a972e9c190e86b0bb0fd4947bceedbcfc50a6266 (patch) | |
tree | c3d8f07ac58b52f4a0b1d84c7bd207af8ce4e057 /src/Nerve_GIC/example | |
parent | e4decddc3f2bb2e9644d8412833e316b68201880 (diff) |
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2372 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 98ac2704dddfb45235380f4507de2e934e4a6075
Diffstat (limited to 'src/Nerve_GIC/example')
-rw-r--r-- | src/Nerve_GIC/example/simple_GIC.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Nerve_GIC/example/simple_GIC.cpp b/src/Nerve_GIC/example/simple_GIC.cpp index e3d19cc8..ec183a5d 100644 --- a/src/Nerve_GIC/example/simple_GIC.cpp +++ b/src/Nerve_GIC/example/simple_GIC.cpp @@ -12,7 +12,7 @@ int main(int argc, char **argv) { std::string off_file_name(argv[1]); double threshold = atof(argv[2]); - std::string function_file_name(argv[3]); + int coord = atoi(argv[3]); double resolution = atof(argv[4]); double gain = atof(argv[5]); @@ -26,8 +26,10 @@ int main(int argc, char **argv) { // ---------------------------------------------------------------------------- Gudhi::graph_induced_complex::Graph_induced_complex GIC; + GIC.set_graph_from_rips(threshold, off_file_name); - GIC.set_cover_from_function(function_file_name,resolution,gain,0); + GIC.set_function_from_coordinate(coord, off_file_name); + GIC.set_cover_from_function(resolution,gain,0); //GIC.find_GIC_simplices(); GIC.find_GIC_simplices_with_functional_minimal_cover(resolution,gain); Simplex_tree stree; GIC.create_complex(stree); |