Valid_contraction_policy.h
1 /* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
2  * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
3  * Author(s): David Salinas
4  *
5  * Copyright (C) 2014 Inria
6  *
7  * Modification(s):
8  * - YYYY/MM Author: Description of the modification
9  */
10 
11 #ifndef CONTRACTION_POLICIES_VALID_CONTRACTION_POLICY_H_
12 #define CONTRACTION_POLICIES_VALID_CONTRACTION_POLICY_H_
13 
14 namespace Gudhi {
15 
16 namespace contraction {
17 
22 template< typename EdgeProfile>
24  public:
25  typedef typename EdgeProfile::Point Point;
26  typedef typename EdgeProfile::Edge_handle Edge_handle;
27  typedef typename EdgeProfile::Graph_vertex Graph_vertex;
28 
29  virtual bool operator()(const EdgeProfile& profile, const boost::optional<Point>& placement) const = 0;
30 
31  virtual ~Valid_contraction_policy() { }
32 };
33 
34 } // namespace contraction
35 
36 } // namespace Gudhi
37 
38 
39 #endif // CONTRACTION_POLICIES_VALID_CONTRACTION_POLICY_H_
Definition: SimplicialComplexForAlpha.h:14
Policy to specify if an edge contraction is valid or not.
Definition: Valid_contraction_policy.h:23
GUDHI  Version 3.4.1  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Fri Jan 22 2021 09:41:15 for GUDHI by Doxygen 1.8.13