summaryrefslogtreecommitdiff
path: root/src/python/example/rips_complex_from_points_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/rips_complex_from_points_example.py
parentd689e78da5830f454cfa740537bee33c6ce76df4 (diff)
parentf40161072b8f74f68b0ff67b6ef2be7abebec950 (diff)
fix conflict
Diffstat (limited to 'src/python/example/rips_complex_from_points_example.py')
-rwxr-xr-xsrc/python/example/rips_complex_from_points_example.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/example/rips_complex_from_points_example.py b/src/python/example/rips_complex_from_points_example.py
index 59d8a261..c05703c6 100755
--- a/src/python/example/rips_complex_from_points_example.py
+++ b/src/python/example/rips_complex_from_points_example.py
@@ -22,6 +22,9 @@ rips = gudhi.RipsComplex(points=[[0, 0], [1, 0], [0, 1], [1, 1]], max_edge_lengt
simplex_tree = rips.create_simplex_tree(max_dimension=1)
-print("filtrations=", simplex_tree.get_filtration())
+print("filtrations=")
+for simplex_with_filtration in simplex_tree.get_filtration():
+ print("(%s, %.2f)" % tuple(simplex_with_filtration))
+
print("star([0])=", simplex_tree.get_star([0]))
print("coface([0], 1)=", simplex_tree.get_cofaces([0], 1))