summaryrefslogtreecommitdiff
path: root/src/python/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/example')
-rwxr-xr-xsrc/python/example/alpha_complex_from_points_example.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/example/alpha_complex_from_points_example.py b/src/python/example/alpha_complex_from_points_example.py
index 465632eb..73faf17c 100755
--- a/src/python/example/alpha_complex_from_points_example.py
+++ b/src/python/example/alpha_complex_from_points_example.py
@@ -46,6 +46,9 @@ if simplex_tree.find([4]):
else:
print("[4] Not found...")
+# Some insertions, simplex_tree needs to initialize filtrations
+simplex_tree.initialize_filtration()
+
print("dimension=", simplex_tree.dimension())
print("filtrations=")
for simplex_with_filtration in simplex_tree.get_filtration():