summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Bipartite_graphs_matching/example/basic.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Bipartite_graphs_matching/example/basic.cpp b/src/Bipartite_graphs_matching/example/basic.cpp
index d190ab48..26f9519e 100644
--- a/src/Bipartite_graphs_matching/example/basic.cpp
+++ b/src/Bipartite_graphs_matching/example/basic.cpp
@@ -26,15 +26,14 @@
using namespace Gudhi::bipartite_graph_matching;
int main() {
+ std::vector< Internal_point > v1, v2;
- std::vector< std::pair<double, double> > v1, v2;
+ v1.push_back(Internal_point(2.7,3.7));
+ v1.push_back(Internal_point(9.6,14));
+ v1.push_back(Internal_point(34.2,34.974));
- v1.emplace_back(2.7,3.7);
- v1.emplace_back(9.6,14);
- v1.emplace_back(34.2,34.974);
-
- v2.emplace_back(2.8,4.45);
- v2.emplace_back(9.5,14.1);
+ v2.push_back(Internal_point(2.8,4.45));
+ v2.push_back(Internal_point(9.5,14.1));
double b = bottleneck_distance(v1, v2);