summaryrefslogtreecommitdiff
path: root/src/Simplex_tree/include/gudhi/Simplex_tree.h
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2020-04-16 21:51:13 +0200
committerGitHub <noreply@github.com>2020-04-16 21:51:13 +0200
commit44996b632685eb077e61f79b1dd07d172776acb9 (patch)
treed43abdf9316a080e8cee8aca48f303ae35c87c62 /src/Simplex_tree/include/gudhi/Simplex_tree.h
parent6d02ca0e077cc9750275abdfc024429cec0ba5a5 (diff)
parent039382cbd951c8c94ddfd43b5ae228666a5cabed (diff)
Merge pull request #260 from VincentRouvreau/alpha_complex_improvement
merge https://github.com/mglisse/gudhi-devel/tree/alpha-cache
Diffstat (limited to 'src/Simplex_tree/include/gudhi/Simplex_tree.h')
-rw-r--r--src/Simplex_tree/include/gudhi/Simplex_tree.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h
index b455ae31..efabbc45 100644
--- a/src/Simplex_tree/include/gudhi/Simplex_tree.h
+++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h
@@ -485,7 +485,7 @@ class Simplex_tree {
public:
/** \brief Returns the key associated to a simplex.
*
- * The filtration must be initialized.
+ * If no key has been assigned, returns `null_key()`.
* \pre SimplexTreeOptions::store_key
*/
static Simplex_key key(Simplex_handle sh) {
@@ -495,7 +495,6 @@ class Simplex_tree {
/** \brief Returns the simplex that has index idx in the filtration.
*
* The filtration must be initialized.
- * \pre SimplexTreeOptions::store_key
*/
Simplex_handle simplex(Simplex_key idx) const {
return filtration_vect_[idx];
@@ -531,8 +530,7 @@ class Simplex_tree {
return Dictionary_it(nullptr);
}
- /** \brief Returns a key different for all keys associated to the
- * simplices of the simplicial complex. */
+ /** \brief Returns a fixed number not in the interval [0, `num_simplices()`). */
static Simplex_key null_key() {
return -1;
}
@@ -878,11 +876,9 @@ class Simplex_tree {
public:
/** \brief Initializes the filtrations, i.e. sort the
- * simplices according to their order in the filtration and initializes all Simplex_keys.
+ * simplices according to their order in the filtration.
*
- * After calling this method, filtration_simplex_range() becomes valid, and each simplex is
- * assigned a Simplex_key corresponding to its order in the filtration (from 0 to m-1 for a
- * simplicial complex with m simplices).
+ * After calling this method, filtration_simplex_range() becomes valid.
*
* Will be automatically called when calling filtration_simplex_range()
* if the filtration has never been initialized yet. */