diff options
author | MathieuCarriere <mathieu.carriere3@gmail.com> | 2020-03-16 14:19:06 -0400 |
---|---|---|
committer | MathieuCarriere <mathieu.carriere3@gmail.com> | 2020-03-16 14:19:06 -0400 |
commit | aa035c480ba8c1e229f7135257b6a6ae8ad57032 (patch) | |
tree | 806269efad3ab4c080344646c104b2699aa20136 /src/python/example/alpha_complex_from_points_example.py | |
parent | 580ca73cac77b4c856fe1f341e496201774a20fd (diff) | |
parent | f40161072b8f74f68b0ff67b6ef2be7abebec950 (diff) |
Merge branch 'master' of https://github.com/GUDHI/gudhi-devel into wasserstein_representations
Diffstat (limited to 'src/python/example/alpha_complex_from_points_example.py')
-rwxr-xr-x | src/python/example/alpha_complex_from_points_example.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/python/example/alpha_complex_from_points_example.py b/src/python/example/alpha_complex_from_points_example.py index 844d7a82..73faf17c 100755 --- a/src/python/example/alpha_complex_from_points_example.py +++ b/src/python/example/alpha_complex_from_points_example.py @@ -46,8 +46,14 @@ if simplex_tree.find([4]): else: print("[4] Not found...") +# Some insertions, simplex_tree needs to initialize filtrations +simplex_tree.initialize_filtration() + print("dimension=", simplex_tree.dimension()) -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)) |