23 #ifndef CONTRACTION_POLICIES_MIDDLE_PLACEMENT_H_
24 #define CONTRACTION_POLICIES_MIDDLE_PLACEMENT_H_
26 #include <gudhi/Contraction/policies/Placement_policy.h>
30 namespace contraction {
32 template<
typename EdgeProfile>
33 class Middle_placement :
public Placement_policy<EdgeProfile> {
35 typedef typename EdgeProfile::Point Point;
36 typedef typename EdgeProfile::Edge_handle Edge_handle;
37 typedef typename EdgeProfile::Graph_vertex Graph_vertex;
39 typedef typename Placement_policy<EdgeProfile>::Placement_type Placement_type;
41 Placement_type operator()(
const EdgeProfile& profile)
const override {
43 return Placement_type(profile.p0());
51 #endif // CONTRACTION_POLICIES_MIDDLE_PLACEMENT_H_