11 #ifndef CONTRACTION_POLICIES_LINK_CONDITION_VALID_CONTRACTION_H_
12 #define CONTRACTION_POLICIES_LINK_CONDITION_VALID_CONTRACTION_H_
14 #include <gudhi/Contraction/policies/Valid_contraction_policy.h>
15 #include <gudhi/Debug_utils.h>
20 namespace contraction {
26 template<
typename EdgeProfile>
29 typedef typename EdgeProfile::Edge_handle Edge_handle;
30 typedef typename EdgeProfile::Point Point;
33 bool operator()(
const EdgeProfile& profile,
const boost::optional<Point>& placement)
const override {
34 Edge_handle edge(profile.edge_handle());
35 DBGMSG(
"Link_condition_valid_contraction:", profile.complex().link_condition(edge));
36 return profile.complex().link_condition(edge);
Policy that only accept edges verifying the link condition (and therefore whose contraction preservin...
Definition: Link_condition_valid_contraction.h:27
Policy to specify if an edge contraction is valid or not.
Definition: Valid_contraction_policy.h:23
Gudhi namespace.
Definition: SimplicialComplexForAlpha.h:14