summaryrefslogtreecommitdiff
path: root/src/cython/example/sparse_rips_persistence_diagram.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/example/sparse_rips_persistence_diagram.py')
-rwxr-xr-xsrc/cython/example/sparse_rips_persistence_diagram.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cython/example/sparse_rips_persistence_diagram.py b/src/cython/example/sparse_rips_persistence_diagram.py
index e58baf45..671d5e34 100755
--- a/src/cython/example/sparse_rips_persistence_diagram.py
+++ b/src/cython/example/sparse_rips_persistence_diagram.py
@@ -18,8 +18,9 @@ __license__ = "MIT"
print("#####################################################################")
print("Sparse RipsComplex creation from points")
-rips = gudhi.RipsComplex(points=[[0, 0], [0, 0.1], [1, 0], [0, 1], [1, 1]],
- max_edge_length=42, sparse=.5)
+rips = gudhi.RipsComplex(
+ points=[[0, 0], [0, 0.1], [1, 0], [0, 1], [1, 1]], max_edge_length=42, sparse=0.5
+)
simplex_tree = rips.create_simplex_tree(max_dimension=2)