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 {
70 operator int()
const {
71 return static_cast<int> (vertex);
77 return this->vertex == other.vertex;
81 return this->vertex != other.vertex;
85 return this->vertex < other.vertex;
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;
std::ostream & operator<<(std::ostream &os, const Permutahedral_representation< Vertex, OrderedSetPartition > &simplex)
Print a permutahedral representation to a stream.
Definition: Permutahedral_representation.h:173
Gudhi namespace.
Definition: SimplicialComplexForAlpha.h:14
Global and local handle similar to boost subgraphs. Vertices are stored in a vector....
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
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition: SkeletonBlockerDS.h:47
int boost_vertex_handle
index that allows to find the vertex in the boost graph
Definition: SkeletonBlockerDS.h:28
Handle type for the vertices of a cell complex.
Definition: VertexHandle.h:15