summaryrefslogtreecommitdiff
path: root/src/cython/example/alpha_complex_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/example/alpha_complex_example.py')
-rwxr-xr-xsrc/cython/example/alpha_complex_example.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cython/example/alpha_complex_example.py b/src/cython/example/alpha_complex_example.py
index 6996b692..37c04f23 100755
--- a/src/cython/example/alpha_complex_example.py
+++ b/src/cython/example/alpha_complex_example.py
@@ -66,6 +66,12 @@ print("coface([0], 1)=", alpha_complex.get_coface_tree([0], 1))
print("point[0]=", alpha_complex.get_point(0))
print("point[5]=", alpha_complex.get_point(5))
+print("betti_numbers()=")
+print(alpha_complex.betti_numbers())
+
alpha_complex.initialize_filtration()
-print("persistence(2)=", alpha_complex.persistence(homology_coeff_field=2,
- min_persistence=0))
+print("persistence(homology_coeff_field=2, min_persistence=0)=")
+print(alpha_complex.persistence(homology_coeff_field=2, min_persistence=0))
+
+print("betti_numbers()=")
+print(alpha_complex.betti_numbers())