22 #ifndef SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_
23 #define SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_
25 #include <gudhi/Skeleton_blocker/Skeleton_blocker_simplex.h>
50 typedef int boost_vertex_handle;
54 boost_vertex_handle vertex;
57 return !(this->vertex == other.vertex);
61 return this->vertex == other.vertex;
65 return this->vertex < other.vertex;
68 friend std::ostream& operator <<(std::ostream& o,
75 struct Vertex_handle {
81 operator int()
const {
return static_cast<int>(vertex); }
85 bool operator==(
const Vertex_handle& other)
const {
86 return this->vertex == other.vertex;
89 bool operator!=(
const Vertex_handle& other)
const {
90 return this->vertex != other.vertex;
93 bool operator<(
const Vertex_handle& other)
const {
94 return this->vertex < other.vertex;
97 friend std::ostream& operator <<(std::ostream& o,
const Vertex_handle & v) {
108 virtual ~Graph_vertex() {
117 bool is_active()
const {
127 virtual std::string to_string()
const {
128 std::ostringstream res;
133 friend std::ostream& operator <<(std::ostream& o,
const Graph_vertex & v) {
171 friend std::ostream& operator <<(std::ostream& o,
const Graph_edge & v) {
172 o <<
"(" << v.a_ <<
"," << v.b_ <<
" - id = " << v.index();
182 #endif // SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_
int boost_vertex_handle
index that allows to find the vertex in the boost graph
Definition: SkeletonBlockerDS.h:30
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:49
Simple traits that is a model of SkeletonBlockerDS and can be passed as a template argument to Skelet...
Definition: Skeleton_blocker_simple_traits.h:40
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition: SkeletonBlockerDS.h:50