22 #ifndef GUDHI_SKELETON_BLOCKERS_SIMPLE_TRAITS_H_
23 #define GUDHI_SKELETON_BLOCKERS_SIMPLE_TRAITS_H_
27 #include "Skeleton_blocker_simplex.h"
49 typedef int boost_vertex_handle;
51 boost_vertex_handle vertex;
54 return ! (this->vertex == other.vertex);
58 return this->vertex == other.vertex;
62 return this->vertex < other.vertex;
78 bool operator==(
const Vertex_handle& other)
const{
79 return this->vertex == other.vertex;
82 bool operator!=(
const Vertex_handle& other)
const{
83 return this->vertex != other.vertex;
86 bool operator<(
const Vertex_handle& other)
const{
87 return this->vertex < other.vertex;
90 friend std::ostream& operator << (std::ostream& o,
const Vertex_handle & v)
103 virtual ~Graph_vertex(){}
105 void activate(){is_active_=
true;}
106 void deactivate(){is_active_=
false;}
107 bool is_active()
const{
return is_active_;}
111 virtual std::string to_string()
const {
112 std::ostringstream res;
117 friend std::ostream& operator << (std::ostream& o,
const Graph_vertex & v){
129 Graph_edge():a_(-1),b_(-1),index_(-1){}
131 int& index(){
return index_;}
132 int index()
const {
return index_;}
147 friend std::ostream& operator << (std::ostream& o,
const Graph_edge & v){
148 o <<
"("<<v.a_<<
","<<v.b_<<
" - id = "<<v.index();
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:48
Simple traits that is a model of SkeletonBlockerDS and can be passed as a template argument to Skelet...
Definition: Skeleton_blocker_simple_traits.h:39
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition: SkeletonBlockerDS.h:50