summaryrefslogtreecommitdiff
path: root/src/Nerve_GIC/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/Nerve_GIC/test')
-rw-r--r--src/Nerve_GIC/test/test_GIC.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/Nerve_GIC/test/test_GIC.cpp b/src/Nerve_GIC/test/test_GIC.cpp
index baf494e3..e8051cf0 100644
--- a/src/Nerve_GIC/test/test_GIC.cpp
+++ b/src/Nerve_GIC/test/test_GIC.cpp
@@ -53,11 +53,10 @@ BOOST_AUTO_TEST_CASE(check_nerve) {
BOOST_AUTO_TEST_CASE(check_GICMAP) {
- Gudhi::graph_induced_complex::Graph_induced_complex GIC; GIC.set_verbose(1);
- std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name);
+ Gudhi::graph_induced_complex::Graph_induced_complex GIC;
+ std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); GIC.set_color_from_coordinate();
std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name);
std::string cover_file_name("data/cover"); GIC.set_cover_from_file(cover_file_name);
- GIC.set_color_from_coordinate();
GIC.find_GICMAP_simplices_with_functional_minimal_cover(); Simplex_tree stree; GIC.create_complex(stree);
BOOST_CHECK(stree.num_vertices() == 3);
@@ -68,10 +67,9 @@ BOOST_AUTO_TEST_CASE(check_GICMAP) {
BOOST_AUTO_TEST_CASE(check_GICcover) {
Gudhi::graph_induced_complex::Graph_induced_complex GIC;
- std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name);
+ std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); GIC.set_color_from_coordinate();
std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name);
std::string cover_file_name("data/cover"); GIC.set_cover_from_file(cover_file_name);
- GIC.set_color_from_coordinate();
GIC.find_GIC_simplices(); Simplex_tree stree; GIC.create_complex(stree);
BOOST_CHECK(stree.num_vertices() == 3);
@@ -79,12 +77,11 @@ BOOST_AUTO_TEST_CASE(check_GICcover) {
BOOST_CHECK(stree.dimension() == 2);
}
-/*
+
BOOST_AUTO_TEST_CASE(check_GICvoronoi) {
Gudhi::graph_induced_complex::Graph_induced_complex GIC;
- std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name);
- GIC.set_color_from_coordinate();
+ std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); GIC.set_color_from_coordinate();
std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name);
GIC.set_cover_from_Voronoi(2);
GIC.find_GIC_simplices(); Simplex_tree stree; GIC.create_complex(stree);
@@ -93,5 +90,4 @@ BOOST_AUTO_TEST_CASE(check_GICvoronoi) {
BOOST_CHECK((stree.num_simplices()-stree.num_vertices()) == 1);
BOOST_CHECK(stree.dimension() == 1);
}
-*/