SkeletonBlockerDS.h
1/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
2 * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
3 * Author(s): David Salinas
4 *
5 * Copyright (C) 2014 Inria
6 *
7 * Modification(s):
8 * - YYYY/MM Author: Description of the modification
9 */
10
11#ifndef CONCEPT_SKELETON_BLOCKER_SKELETONBLOCKERDS_H_
12#define CONCEPT_SKELETON_BLOCKER_SKELETONBLOCKERDS_H_
13
14namespace Gudhi {
15
16namespace skeleton_blocker {
17
29
49
50 friend ostream& operator<<(ostream& o, const Root_vertex_handle & v);
51 };
52
58
59 friend ostream& operator<<(ostream& o, const Vertex_handle & v);
60 };
61
67 struct Graph_vertex {
71 void deactivate();
72
75 void activate();
76
79 bool is_active() const;
80
81 void set_id(Root_vertex_handle i);
82 Root_vertex_handle get_id() const;
83 virtual string to_string() const;
84 friend ostream& operator<<(ostream& o, const Graph_vertex & v);
85 };
86
91 struct Graph_edge {
96
101
106
107 friend ostream& operator<<(ostream& o, const Simple_edge & v);
108 };
109};
110
111} // namespace skeleton_blocker
112
113namespace skbl = skeleton_blocker;
114
115} // namespace Gudhi
116
117#endif // CONCEPT_SKELETON_BLOCKER_SKELETONBLOCKERDS_H_
The type of edges that are stored the boost graph. An Edge must be Default Constructible and Equality...
Definition: SkeletonBlockerDS.h:91
Root_vertex_handle first() const
Returns the first vertex of the edge.
Root_vertex_handle second() const
Returns the second vertex of the edge.
void setId(Root_vertex_handle a, Root_vertex_handle b)
Allows to modify vertices of the edge.
The type of vertices that are stored the boost graph. A Vertex must be Default Constructible and Equa...
Definition: SkeletonBlockerDS.h:67
void deactivate()
Used to deactivate a vertex for example when contracting an edge. It allows in some cases to remove t...
bool is_active() const
Tells if the vertex is active.
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition: SkeletonBlockerDS.h:47
Concept for the template class passed for Skeleton_blocker_complex. Most importantly,...
Definition: SkeletonBlockerDS.h:24
int boost_vertex_handle
index that allows to find the vertex in the boost graph
Definition: SkeletonBlockerDS.h:28