Gudhi  1.2.0
 All Classes Functions Variables Typedefs Friends Groups Pages
SkeletonBlockerDS.h
1 /*
2  * SkeletonBlockerDS.h
3  *
4  * Created on: Feb 20, 2014
5  * Author: David Salinas
6  * Copyright 2013 INRIA. All rights reserved
7  */
8 
9 #ifndef GUDHI_SKELETONBLOCKERDS_H_
10 #define GUDHI_SKELETONBLOCKERDS_H_
11 
12 
13 namespace Gudhi {
14 
15 namespace skbl {
16 
17 
18 
26 {
30  typedef int boost_vertex_handle;
31 
32 
51 
52  boost_vertex_handle vertex;
53 
54  friend ostream& operator << (ostream& o, const Root_vertex_handle & v);
55  };
56 
60  struct Vertex_handle{
61  boost_vertex_handle vertex;
62 
63  friend ostream& operator << (ostream& o, const Vertex_handle & v);
64  };
65 
66 
72  struct Graph_vertex{
76  void deactivate();
77 
80  void activate();
81 
84  bool is_active() const;
85 
86  void set_id(Root_vertex_handle i);
87  Root_vertex_handle get_id() const;
88  virtual string to_string() const ;
89  friend ostream& operator << (ostream& o, const Graph_vertex & v);
90  };
91 
92 
97  struct Graph_edge{
102 
106  Root_vertex_handle first() const ;
107 
111  Root_vertex_handle second() const ;
112 
113  friend ostream& operator << (ostream& o, const Simple_edge & v);
114  };
115 
116 
117 };
118 
119 
120 
121 } // namespace skbl
122 } // namespace GUDHI
123 
124 
125 #endif /* GUDHI_SKELETONBLOCKERDS_H_ */
int boost_vertex_handle
index that allows to find the vertex in the boost graph
Definition: SkeletonBlockerDS.h:30
The type of edges that are stored the boost graph. An Edge must be Default Constructible and Equality...
Definition: SkeletonBlockerDS.h:97
void setId(Root_vertex_handle a, Root_vertex_handle b)
Allows to modify vertices of the edge.
Root_vertex_handle first() const
Returns the first vertex of the edge.
void deactivate()
Used to deactivate a vertex for example when contracting an edge. It allows in some cases to remove t...
void activate()
Used to activate a vertex.
Concept for the template class passed for Skeleton_blocker_complex. Most importantly, it contains the nodes for vertices and edges (Graph_vertex and Graph_edge) that are stored in the simplicial complex. The user can redefine these classes to attach additional information to vertices and edges.
Definition: SkeletonBlockerDS.h:25
Root_vertex_handle second() const
Returns the second vertex of the edge.
Definition: SkeletonBlockerDS.h:60
The type of vertices that are stored the boost graph. A Vertex must be Default Constructible and Equa...
Definition: SkeletonBlockerDS.h:72
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition: SkeletonBlockerDS.h:50
bool is_active() const
Tells if the vertex is active.