summaryrefslogtreecommitdiff
path: root/src/cython/example/Rips_complex_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/example/Rips_complex_example.py')
-rwxr-xr-xsrc/cython/example/Rips_complex_example.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cython/example/Rips_complex_example.py b/src/cython/example/Rips_complex_example.py
new file mode 100755
index 00000000..0e8a0968
--- /dev/null
+++ b/src/cython/example/Rips_complex_example.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+import gudhi
+
+print("#######################################################################")
+print("RipsComplex creation from points")
+rips = gudhi.RipsComplex(points=[[0,0],[1,0],[0,1],[1,1]],max_dimension=1,max_edge_length=42)
+
+print("filtered_tree=", rips.get_filtered_tree())
+print("star([0])=", rips.get_star_tree([0]))
+print("coface([0],1)=", rips.get_coface_tree([0], 1))