summaryrefslogtreecommitdiff
path: root/src/cython/doc/alpha_complex_user.rst
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/doc/alpha_complex_user.rst')
-rw-r--r--src/cython/doc/alpha_complex_user.rst14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/cython/doc/alpha_complex_user.rst b/src/cython/doc/alpha_complex_user.rst
index 5ad3a9e7..ed2a470c 100644
--- a/src/cython/doc/alpha_complex_user.rst
+++ b/src/cython/doc/alpha_complex_user.rst
@@ -25,14 +25,13 @@ This example builds the Delaunay triangulation from the given points, and initia
import gudhi
alpha_complex = gudhi.AlphaComplex(points=[[1, 1], [7, 0], [4, 6], [9, 6], [0, 14], [2, 19], [9, 17]])
- simplex_tree = gudhi.SimplexTree()
- alpha_complex.create_simplex_tree(simplex_tree, max_alpha_square=60.0)
+ simplex_tree = alpha_complex.create_simplex_tree(max_alpha_square=60.0)
result_str = 'Alpha complex is of dimension ' + repr(simplex_tree.dimension()) + ' - ' + \
repr(simplex_tree.num_simplices()) + ' simplices - ' + \
repr(simplex_tree.num_vertices()) + ' vertices.'
print(result_str)
- for fitered_value in simplex_tree.get_filtered_tree():
- print(fitered_value)
+ for filtered_value in simplex_tree.get_filtered_tree():
+ print(filtered_value)
The output is:
@@ -156,14 +155,13 @@ Then, it is asked to display information about the alpha complex:
import gudhi
alpha_complex = gudhi.AlphaComplex(off_file='alphacomplexdoc.off')
- simplex_tree = gudhi.SimplexTree()
- alpha_complex.create_simplex_tree(simplex_tree, max_alpha_square=59.0)
+ simplex_tree = alpha_complex.create_simplex_tree(max_alpha_square=59.0)
result_str = 'Alpha complex is of dimension ' + repr(simplex_tree.dimension()) + ' - ' + \
repr(simplex_tree.num_simplices()) + ' simplices - ' + \
repr(simplex_tree.num_vertices()) + ' vertices.'
print(result_str)
- for fitered_value in simplex_tree.get_filtered_tree():
- print(fitered_value)
+ for filtered_value in simplex_tree.get_filtered_tree():
+ print(filtered_value)
the program output is: