11#ifndef CONTRACTION_POLICIES_FIRST_VERTEX_PLACEMENT_H_
12#define CONTRACTION_POLICIES_FIRST_VERTEX_PLACEMENT_H_
14#include <gudhi/Contraction/policies/Placement_policy.h>
18namespace contraction {
23template<
typename EdgeProfile>
26 typedef typename EdgeProfile::Point Point;
27 typedef typename EdgeProfile::Edge_handle Edge_handle;
29 typedef typename Placement_policy<EdgeProfile>::Placement_type Placement_type;
31 Placement_type operator()(
const EdgeProfile& profile)
const override {
32 return Placement_type(profile.p0());
Places the contracted point onto the first point of the edge.
Definition: First_vertex_placement.h:24
Policy to specify where the merged point had to be placed after an edge contraction.
Definition: Placement_policy.h:25