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_read_file_example.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp b/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp
index 74c8d1ab..e26edd26 100644
--- a/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp
+++ b/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp
@@ -45,10 +45,8 @@ int main(int argc, char** argv) {
"should contain a birth-death pair per line. Third, optional parameter is an error bound on a bottleneck" <<
" distance (set by default to zero). The program will now terminate \n";
}
- std::vector<Persistence_interval> diag1;
- std::vector<Persistence_interval> diag2;
- read_persistence_diagram_from_file(argv[1], std::back_inserter(diag1));
- read_persistence_diagram_from_file(argv[2], std::back_inserter(diag2));
+ std::vector<std::pair<double, double>> diag1 = read_persistence_diagram_from_file(argv[1], -1);
+ std::vector<std::pair<double, double>> diag2 = read_persistence_diagram_from_file(argv[2], -1);
double tolerance = 0.;
if (argc == 4) {