summaryrefslogtreecommitdiff
path: root/src/cython/doc/persistence_graphical_tools_user.rst
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/doc/persistence_graphical_tools_user.rst')
-rw-r--r--src/cython/doc/persistence_graphical_tools_user.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cython/doc/persistence_graphical_tools_user.rst b/src/cython/doc/persistence_graphical_tools_user.rst
index 0cb61cf1..b23ad5e6 100644
--- a/src/cython/doc/persistence_graphical_tools_user.rst
+++ b/src/cython/doc/persistence_graphical_tools_user.rst
@@ -41,6 +41,7 @@ This function can display the persistence result as a diagram:
import gudhi
alpha_complex = gudhi.AlphaComplex(off_file='tore3D_300.off')
- alpha_complex.initialize_filtration()
- diag = alpha_complex.persistence()
+ simplex_tree = gudhi.SimplexTree()
+ alpha_complex.create_simplex_tree(simplex_tree)
+ diag = simplex_tree.persistence()
gudhi.diagram_persistence(diag)