summaryrefslogtreecommitdiff
path: root/src/python/example/simplex_tree_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/example/simplex_tree_example.py')
-rwxr-xr-xsrc/python/example/simplex_tree_example.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/example/simplex_tree_example.py b/src/python/example/simplex_tree_example.py
index 7f20c389..34833899 100755
--- a/src/python/example/simplex_tree_example.py
+++ b/src/python/example/simplex_tree_example.py
@@ -38,6 +38,10 @@ else:
print("dimension=", st.dimension())
+print("simplices=")
+for simplex_with_filtration in st.get_simplices():
+ print("(%s, %.2f)" % tuple(simplex_with_filtration))
+
st.initialize_filtration()
print("filtration=")
for simplex_with_filtration in st.get_filtration():