11 #ifndef SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_ 12 #define SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_ 14 #include <gudhi/Skeleton_blocker/Skeleton_blocker_simplex.h> 21 namespace skeleton_blocker {
39 typedef int boost_vertex_handle;
43 boost_vertex_handle vertex;
46 return !(this->vertex == other.vertex);
50 return this->vertex == other.vertex;
54 return this->vertex < other.vertex;
57 friend std::ostream& operator<<(std::ostream& o,
64 struct Vertex_handle {
65 typedef int boost_vertex_handle;
67 explicit Vertex_handle(boost_vertex_handle val = -1)
70 operator int()
const {
71 return static_cast<int> (vertex);
74 boost_vertex_handle vertex;
76 bool operator==(
const Vertex_handle& other)
const {
77 return this->vertex == other.vertex;
80 bool operator!=(
const Vertex_handle& other)
const {
81 return this->vertex != other.vertex;
84 bool operator<(
const Vertex_handle& other)
const {
85 return this->vertex < other.vertex;
88 friend std::ostream& operator<<(std::ostream& o,
const Vertex_handle & v) {
99 virtual ~Graph_vertex() { }
109 bool is_active()
const {
121 virtual std::string to_string()
const {
122 std::ostringstream res;
127 friend std::ostream& operator<<(std::ostream& o,
const Graph_vertex & v) {
165 friend std::ostream& operator<<(std::ostream& o,
const Graph_edge & v) {
166 o <<
"(" << v.a_ <<
"," << v.b_ <<
" - id = " << v.index();
174 namespace skbl = skeleton_blocker;
178 #endif // SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_ Definition: SimplicialComplexForAlpha.h:14
Global and local handle similar to boost subgraphs. Vertices are stored in a vector. For the root simplicial complex, the local and global descriptors are the same. For a subcomplex L and one of its vertices 'v', the local descriptor of 'v' is its position in the vertex vector of the subcomplex L whereas its global descriptor is the position of 'v' in the vertex vector of the root simplicial complex.
Definition: Skeleton_blocker_simple_traits.h:38
Simple traits that is a model of SkeletonBlockerDS and can be passed as a template argument to Skelet...
Definition: Skeleton_blocker_simple_traits.h:29