summaryrefslogtreecommitdiff
path: root/src/Bottleneck_distance/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bottleneck_distance/example')
-rw-r--r--src/Bottleneck_distance/example/bottleneck_example.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Bottleneck_distance/example/bottleneck_example.cpp b/src/Bottleneck_distance/example/bottleneck_example.cpp
index bbd83547..c6a06235 100644
--- a/src/Bottleneck_distance/example/bottleneck_example.cpp
+++ b/src/Bottleneck_distance/example/bottleneck_example.cpp
@@ -23,7 +23,6 @@
#include <gudhi/Graph_matching.h>
#include <iostream>
-using namespace Gudhi::Bottleneck_distance;
int main() {
std::vector< std::pair<double,double> > v1, v2;
@@ -36,7 +35,7 @@ int main() {
v2.push_back(std::pair<double,double>(9.5,14.1));
- double b = bottleneck_distance(v1, v2);
+ double b = Gudhi::Bottleneck_distance::compute(v1, v2);
std::cout << "Bottleneck distance = " << b << std::endl;