23 #ifndef CONTRACTION_POLICIES_LINK_CONDITION_VALID_CONTRACTION_H_ 24 #define CONTRACTION_POLICIES_LINK_CONDITION_VALID_CONTRACTION_H_ 26 #include <gudhi/Contraction/policies/Valid_contraction_policy.h> 27 #include <gudhi/Debug_utils.h> 32 namespace contraction {
38 template<
typename EdgeProfile>
41 typedef typename EdgeProfile::Edge_handle Edge_handle;
42 typedef typename EdgeProfile::Point Point;
45 bool operator()(
const EdgeProfile& profile,
const boost::optional<Point>& placement)
const override {
46 Edge_handle edge(profile.edge_handle());
47 DBGMSG(
"Link_condition_valid_contraction:", profile.complex().link_condition(edge));
48 return profile.complex().link_condition(edge);
56 #endif // CONTRACTION_POLICIES_LINK_CONDITION_VALID_CONTRACTION_H_ Definition: SimplicialComplexForAlpha.h:26
Policy that only accept edges verifying the link condition (and therefore whose contraction preservin...
Definition: Link_condition_valid_contraction.h:39
Policy to specify if an edge contraction is valid or not.
Definition: Valid_contraction_policy.h:35