#include <gudhi/Rips_complex.h>
#include <gudhi/Simplex_tree.h>
#include <iostream>
#include <string>
#include <vector>
#include <limits>
int main() {
using Distance_matrix = std::vector<std::vector<Filtration_value>>;
Distance_matrix distances;
distances.push_back({});
distances.push_back({0.94});
distances.push_back({0.77, 0.26});
distances.push_back({0.99, 0.99, 0.28});
distances.push_back({0.11, 0.39, 0.97, 0.30});
double threshold = 1.0;
Rips_complex rips_complex_from_points(distances, threshold);
std::clog <<
"Rips complex is of dimension " << stree.
dimension() <<
std::clog << "Iterator on Rips complex simplices in the filtration order, with [filtration value]:" <<
std::endl;
std::clog << " ( ";
std::clog << vertex << " ";
}
std::clog <<
") -> " <<
"[" << stree.
filtration(f_simplex) <<
"] ";
std::clog << std::endl;
}
return 0;
}