summaryrefslogtreecommitdiff
path: root/src/python/example/simplex_tree_example.py
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2020-03-16 14:23:50 -0400
committerMathieuCarriere <mathieu.carriere3@gmail.com>2020-03-16 14:23:50 -0400
commitab04de27d4f4f1382a13de6b4c48ea298fcb1bac (patch)
tree6b9b36fec88de16c2a480e05af8058d47ee58937 /src/python/example/simplex_tree_example.py
parentd689e78da5830f454cfa740537bee33c6ce76df4 (diff)
parentf40161072b8f74f68b0ff67b6ef2be7abebec950 (diff)
fix conflict
Diffstat (limited to 'src/python/example/simplex_tree_example.py')
-rwxr-xr-xsrc/python/example/simplex_tree_example.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/python/example/simplex_tree_example.py b/src/python/example/simplex_tree_example.py
index 30de00da..34833899 100755
--- a/src/python/example/simplex_tree_example.py
+++ b/src/python/example/simplex_tree_example.py
@@ -38,8 +38,15 @@ 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=", st.get_filtration())
+print("filtration=")
+for simplex_with_filtration in st.get_filtration():
+ print("(%s, %.2f)" % tuple(simplex_with_filtration))
+
print("filtration[1, 2]=", st.filtration([1, 2]))
print("filtration[4, 2]=", st.filtration([4, 2]))