summaryrefslogtreecommitdiff
path: root/src/cython/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-17 13:06:32 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-17 13:06:32 +0000
commit7eb4beac61db2ba22fa0293ac816da87d98ffeff (patch)
treeac59aca8228b252a4f149be5d799f0ec1e7297ed /src/cython/example
parent702d71119d8aaf3e36d3a91c7387ad5a3288a400 (diff)
Separate Rips_complex from Simplex_tree
Add Alpha_complex_UT git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1179 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: ae209f9e070dd3e27c8eb93f0a1edf2842e9c561
Diffstat (limited to 'src/cython/example')
-rwxr-xr-xsrc/cython/example/Rips_complex_example.py11
-rwxr-xr-xsrc/cython/example/Simplex_tree_example.py9
2 files changed, 11 insertions, 9 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))
diff --git a/src/cython/example/Simplex_tree_example.py b/src/cython/example/Simplex_tree_example.py
index 049b2ca4..119fbc65 100755
--- a/src/cython/example/Simplex_tree_example.py
+++ b/src/cython/example/Simplex_tree_example.py
@@ -39,15 +39,6 @@ print("skeleton_tree[1]=", st.get_skeleton_tree(1))
print("skeleton_tree[0]=", st.get_skeleton_tree(0))
print("#######################################################################")
-print("SimplexTree creation from Rips")
-st_from_rips = gudhi.SimplexTree(points=[[0,0],[1,0],[0,1],[1,1]],max_dimension=1,max_edge_length=42)
-
-print("filtered_tree=", st_from_rips.get_filtered_tree())
-print("star([0])=", st_from_rips.get_star_tree([0]))
-print("coface([0],1)=", st_from_rips.get_coface_tree([0], 1))
-
-
-print("#######################################################################")
print("MiniSimplexTree creation from insertion")
triangle012 = [0, 1, 2]
edge03 = [0, 3]