11 #ifndef CONTRACTION_POLICIES_MIDDLE_PLACEMENT_H_ 12 #define CONTRACTION_POLICIES_MIDDLE_PLACEMENT_H_ 14 #include <gudhi/Contraction/policies/Placement_policy.h> 18 namespace contraction {
20 template<
typename EdgeProfile>
21 class Middle_placement :
public Placement_policy<EdgeProfile> {
23 typedef typename EdgeProfile::Point Point;
24 typedef typename EdgeProfile::Edge_handle Edge_handle;
25 typedef typename EdgeProfile::Graph_vertex Graph_vertex;
27 typedef typename Placement_policy<EdgeProfile>::Placement_type Placement_type;
29 Placement_type operator()(
const EdgeProfile& profile)
const override {
31 return Placement_type(profile.p0());
39 #endif // CONTRACTION_POLICIES_MIDDLE_PLACEMENT_H_ Definition: SimplicialComplexForAlpha.h:14