summaryrefslogtreecommitdiff
path: root/src/python/example/rips_complex_from_points_example.py
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-03-17 13:57:29 +0100
committerMarc Glisse <marc.glisse@inria.fr>2020-03-17 13:57:29 +0100
commit2d3ab6a6a93c272827624e55ef39b093b3a9805b (patch)
tree08b278460a8d3212b3dcd03c2a5c06c77c7cf0c0 /src/python/example/rips_complex_from_points_example.py
parent55c1385419edd4e152df219dfff596d2631367f1 (diff)
parent559df19e65a7e2d45af9cc85e06af14b86d06009 (diff)
Merge remote-tracking branch 'origin/master' into gen2
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))