summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-23 16:35:30 +0000
committerfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-23 16:35:30 +0000
commit12a58fd627a6ad59d663ae746b881ef794e951c8 (patch)
tree9247874597ffd0db9dd329a2454b6dea57b60ff9
parent6a9c5196e3115f323677172fa0f03ef545604509 (diff)
save
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/bottleneckDistance@1187 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 5f7f7b5f900f8123daeaeff90beb1fbd676334ac
-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);