diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2021-04-22 22:16:33 +0200 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2021-04-22 22:16:33 +0200 |
commit | 33cb5826e62abf8dd84d2adb59d99fc1f54a2aa1 (patch) | |
tree | 8efeb43637815faa10a936310075ee2a86db6e25 /src | |
parent | 2ca42207529f0f21c2cb1392ebfd2b5f41882b60 (diff) |
Fix return type of source/target
Diffstat (limited to 'src')
-rw-r--r-- | src/Rips_complex/include/gudhi/Sparse_rips_complex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Rips_complex/include/gudhi/Sparse_rips_complex.h b/src/Rips_complex/include/gudhi/Sparse_rips_complex.h index 8024f92d..7ae7b317 100644 --- a/src/Rips_complex/include/gudhi/Sparse_rips_complex.h +++ b/src/Rips_complex/include/gudhi/Sparse_rips_complex.h @@ -53,9 +53,9 @@ edges(Graph<Vertex_handle, Filtration_value> const&g) { return { I(0), I(g.elist.size()) }; } template <class Vertex_handle, class Filtration_value> -std::size_t source(std::size_t e, Graph<Vertex_handle, Filtration_value> const&g) { return std::get<0>(g.elist[e]); } +Vertex_handle source(std::size_t e, Graph<Vertex_handle, Filtration_value> const&g) { return std::get<0>(g.elist[e]); } template <class Vertex_handle, class Filtration_value> -std::size_t target(std::size_t e, Graph<Vertex_handle, Filtration_value> const&g) { return std::get<1>(g.elist[e]); } +Vertex_handle target(std::size_t e, Graph<Vertex_handle, Filtration_value> const&g) { return std::get<1>(g.elist[e]); } template <class Vertex_handle, class Filtration_value> Filtration_value get(vertex_filtration_t, Graph<Vertex_handle, Filtration_value> const&, Vertex_handle) { return 0; } template <class Vertex_handle, class Filtration_value> |