From 7eb4beac61db2ba22fa0293ac816da87d98ffeff Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Tue, 17 May 2016 13:06:32 +0000 Subject: 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 --- src/cython/example/Rips_complex_example.py | 11 +++++++++++ src/cython/example/Simplex_tree_example.py | 9 --------- 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100755 src/cython/example/Rips_complex_example.py (limited to 'src/cython/example') 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 @@ -38,15 +38,6 @@ print("skeleton_tree[2]=", st.get_skeleton_tree(2)) 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] -- cgit v1.2.3