summaryrefslogtreecommitdiff
path: root/src/Nerve_GIC/test
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-10-09 16:48:40 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-10-09 16:48:40 +0000
commitfe381d1ffe037028a9704966ec26d19894f4f5b1 (patch)
tree7365b91c1e4b40bcd10ef0cf9b1a4f20e8531653 /src/Nerve_GIC/test
parent304012f82e02a5727f604b2907070b4661a9ed18 (diff)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2771 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: cd87a5b72b67d27b21f765fac822ea69f9496019
Diffstat (limited to 'src/Nerve_GIC/test')
-rw-r--r--src/Nerve_GIC/test/test_GIC.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Nerve_GIC/test/test_GIC.cpp b/src/Nerve_GIC/test/test_GIC.cpp
index cff49372..24fa8c8f 100644
--- a/src/Nerve_GIC/test/test_GIC.cpp
+++ b/src/Nerve_GIC/test/test_GIC.cpp
@@ -41,35 +41,35 @@ BOOST_AUTO_TEST_CASE(check_nerve) {
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_Nerve_simplices(); Gudhi::graph_induced_complex::Simplex_tree stree; GIC.create_complex(stree);
+ GIC.find_Nerve_simplices(); Gudhi::Simplex_tree<> stree; GIC.create_complex(stree);
BOOST_CHECK(stree.num_vertices() == 3);
BOOST_CHECK((stree.num_simplices()-stree.num_vertices()) == 0);
BOOST_CHECK(stree.dimension() == 0);
}
-BOOST_AUTO_TEST_CASE(check_GICMAP) {
+BOOST_AUTO_TEST_CASE(check_funcGIC) {
using Point = std::vector<float>;
Gudhi::graph_induced_complex::Graph_induced_complex<Point> 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.find_GICMAP_simplices_with_functional_minimal_cover(); Gudhi::graph_induced_complex::Simplex_tree stree; GIC.create_complex(stree);
+ GIC.find_GIC_simplices_with_functional_minimal_cover(); Gudhi::Simplex_tree<> stree; GIC.create_complex(stree);
BOOST_CHECK(stree.num_vertices() == 3);
BOOST_CHECK((stree.num_simplices()-stree.num_vertices()) == 2);
BOOST_CHECK(stree.dimension() == 1);
}
-BOOST_AUTO_TEST_CASE(check_GICcover) {
+BOOST_AUTO_TEST_CASE(check_regGIC) {
using Point = std::vector<float>;
Gudhi::graph_induced_complex::Graph_induced_complex<Point> 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.find_GIC_simplices(); Gudhi::graph_induced_complex::Simplex_tree stree; GIC.create_complex(stree);
+ GIC.find_GIC_simplices(); Gudhi::Simplex_tree<> stree; GIC.create_complex(stree);
BOOST_CHECK(stree.num_vertices() == 3);
BOOST_CHECK((stree.num_simplices()-stree.num_vertices()) == 4);
@@ -77,14 +77,14 @@ BOOST_AUTO_TEST_CASE(check_GICcover) {
}
-BOOST_AUTO_TEST_CASE(check_GICvoronoi) {
+BOOST_AUTO_TEST_CASE(check_voronoiGIC) {
using Point = std::vector<float>;
Gudhi::graph_induced_complex::Graph_induced_complex<Point> 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);
GIC.set_cover_from_Voronoi(Gudhi::Euclidean_distance(),2);
- GIC.find_GIC_simplices(); Gudhi::graph_induced_complex::Simplex_tree stree; GIC.create_complex(stree);
+ GIC.find_GIC_simplices(); Gudhi::Simplex_tree<> stree; GIC.create_complex(stree);
BOOST_CHECK(stree.num_vertices() == 2);
BOOST_CHECK((stree.num_simplices()-stree.num_vertices()) == 1);