diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-11-29 16:50:55 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-11-29 16:50:55 +0000 |
commit | 97d80185d6ec4d5e8f81b4cd4936d29a6d63b05b (patch) | |
tree | 58b2340961e93d39ea8f837f0658aa97f1c4ab81 /src/cython/doc/alpha_complex_user.rst | |
parent | 2976ab407d564b46173aeedf5c1e876b5cfc5a97 (diff) |
Fix interface for Alpha complex and Tangential complex
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1801 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 995b53c7f65057ec155988b90f17299665eab4ae
Diffstat (limited to 'src/cython/doc/alpha_complex_user.rst')
-rw-r--r-- | src/cython/doc/alpha_complex_user.rst | 14 |
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: |