Loading...
Searching...
No Matches
SkeletonBlockerDS.h
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
* See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
* Author(s): David Salinas
*
* Copyright (C) 2014 Inria
*
* Modification(s):
* - YYYY/MM Author: Description of the modification
*/
#ifndef CONCEPT_SKELETON_BLOCKER_SKELETONBLOCKERDS_H_
#define CONCEPT_SKELETON_BLOCKER_SKELETONBLOCKERDS_H_
namespace Gudhi {
namespace skeleton_blocker {
struct SkeletonBlockerDS {
typedef int boost_vertex_handle;
struct Root_vertex_handle {
boost_vertex_handle vertex;
friend ostream& operator<<(ostream& o, const Root_vertex_handle & v);
};
struct Vertex_handle {
boost_vertex_handle vertex;
friend ostream& operator<<(ostream& o, const Vertex_handle & v);
};
struct Graph_vertex {
void deactivate();
void activate();
bool is_active() const;
void set_id(Root_vertex_handle i);
Root_vertex_handle get_id() const;
virtual string to_string() const;
friend ostream& operator<<(ostream& o, const Graph_vertex & v);
};
struct Graph_edge {
void setId(Root_vertex_handle a, Root_vertex_handle b);
Root_vertex_handle first() const;
Root_vertex_handle second() const;
friend ostream& operator<<(ostream& o, const Simple_edge & v);
};
};
} // namespace skeleton_blocker
namespace skbl = skeleton_blocker;
} // namespace Gudhi
#endif // CONCEPT_SKELETON_BLOCKER_SKELETONBLOCKERDS_H_
Gudhi
Gudhi namespace.
Definition SimplicialComplexForAlpha.h:14
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_edge
The type of edges that are stored the boost graph. An Edge must be Default Constructible and Equality...
Definition SkeletonBlockerDS.h:91
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_edge::first
Root_vertex_handle first() const
Returns the first vertex of the edge.
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_edge::second
Root_vertex_handle second() const
Returns the second vertex of the edge.
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_edge::setId
void setId(Root_vertex_handle a, Root_vertex_handle b)
Allows to modify vertices of the edge.
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_vertex
The type of vertices that are stored the boost graph. A Vertex must be Default Constructible and Equa...
Definition SkeletonBlockerDS.h:67
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_vertex::deactivate
void deactivate()
Used to deactivate a vertex for example when contracting an edge. It allows in some cases to remove t...
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_vertex::activate
void activate()
Used to activate a vertex.
Gudhi::skeleton_blocker::SkeletonBlockerDS::Graph_vertex::is_active
bool is_active() const
Tells if the vertex is active.
Gudhi::skeleton_blocker::SkeletonBlockerDS::Root_vertex_handle
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition SkeletonBlockerDS.h:47
Gudhi::skeleton_blocker::SkeletonBlockerDS::Vertex_handle
Definition SkeletonBlockerDS.h:56
Gudhi::skeleton_blocker::SkeletonBlockerDS
Concept for the template class passed for Skeleton_blocker_complex. Most importantly,...
Definition SkeletonBlockerDS.h:24
Gudhi::skeleton_blocker::SkeletonBlockerDS::boost_vertex_handle
int boost_vertex_handle
index that allows to find the vertex in the boost graph
Definition SkeletonBlockerDS.h:28