summaryrefslogtreecommitdiff
path: root/src/Nerve_GIC/example/MapperDeltaCoord.cpp
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-12 15:37:55 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-12 15:37:55 +0000
commit6adf87fe0a609443962238200e877c60d90f6a2d (patch)
tree5da27b1886fb7fe76ec8f9dd6a586ac7a5b3fd25 /src/Nerve_GIC/example/MapperDeltaCoord.cpp
parent9e1a4e80bc3f2cffc965dc3f5194ea308ca9afab (diff)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2413 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: a0a65ae49ca0bb6e5ed614f44cabb060fa0e7490
Diffstat (limited to 'src/Nerve_GIC/example/MapperDeltaCoord.cpp')
-rw-r--r--src/Nerve_GIC/example/MapperDeltaCoord.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Nerve_GIC/example/MapperDeltaCoord.cpp b/src/Nerve_GIC/example/MapperDeltaCoord.cpp
index aa12afe6..950ee58a 100644
--- a/src/Nerve_GIC/example/MapperDeltaCoord.cpp
+++ b/src/Nerve_GIC/example/MapperDeltaCoord.cpp
@@ -14,11 +14,6 @@ int main(int argc, char **argv) {
int coord = atoi(argv[2]);
bool verb = 0; if(argc == 4) verb = 1;
- // Type definitions
- using Graph_t = boost::adjacency_list < boost::vecS, boost::vecS, boost::undirectedS,\
- boost::property < vertex_filtration_t, Filtration_value >,\
- boost::property < edge_filtration_t, Filtration_value > >;
-
// ---------------------------------------
// Init of a Mapper Delta from an OFF file
// ---------------------------------------
@@ -26,12 +21,16 @@ int main(int argc, char **argv) {
Gudhi::graph_induced_complex::Graph_induced_complex GIC;
GIC.set_verbose(verb);
- GIC.set_graph_from_automatic_rips(off_file_name);
- GIC.set_function_from_coordinate(coord, off_file_name);
GIC.set_color_from_coordinate(off_file_name, coord);
+ GIC.set_function_from_coordinate(coord, off_file_name);
+
+ GIC.set_graph_from_automatic_rips(off_file_name);
+
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_with_KeplerMapper();
Simplex_tree stree; GIC.create_complex(stree);