23 #ifndef SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_ 24 #define SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_ 26 #include <gudhi/Skeleton_blocker/Skeleton_blocker_simplex.h> 33 namespace skeleton_blocker {
51 typedef int boost_vertex_handle;
55 boost_vertex_handle vertex;
58 return !(this->vertex == other.vertex);
62 return this->vertex == other.vertex;
66 return this->vertex < other.vertex;
69 friend std::ostream& operator<<(std::ostream& o,
76 struct Vertex_handle {
77 typedef int boost_vertex_handle;
79 explicit Vertex_handle(boost_vertex_handle val = -1)
82 operator int()
const {
83 return static_cast<int> (vertex);
86 boost_vertex_handle vertex;
88 bool operator==(
const Vertex_handle& other)
const {
89 return this->vertex == other.vertex;
92 bool operator!=(
const Vertex_handle& other)
const {
93 return this->vertex != other.vertex;
96 bool operator<(
const Vertex_handle& other)
const {
97 return this->vertex < other.vertex;
100 friend std::ostream& operator<<(std::ostream& o,
const Vertex_handle & v) {
111 virtual ~Graph_vertex() { }
121 bool is_active()
const {
133 virtual std::string to_string()
const {
134 std::ostringstream res;
139 friend std::ostream& operator<<(std::ostream& o,
const Graph_vertex & v) {
177 friend std::ostream& operator<<(std::ostream& o,
const Graph_edge & v) {
178 o <<
"(" << v.a_ <<
"," << v.b_ <<
" - id = " << v.index();
186 namespace skbl = skeleton_blocker;
190 #endif // SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_TRAITS_H_ Definition: SimplicialComplexForAlpha.h:26
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:50
Simple traits that is a model of SkeletonBlockerDS and can be passed as a template argument to Skelet...
Definition: Skeleton_blocker_simple_traits.h:41