diff options
author | Gard Spreemann <gspr@nonempty.org> | 2019-09-25 14:53:36 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2019-09-25 14:53:36 +0200 |
commit | 70ad5fc411b0e0a3d590ad281fc97d488994062b (patch) | |
tree | b0ddd84d7ee935936787eee2b75f78f2e21c41f0 /src/Simplex_tree/example/README | |
parent | b50046e487ab42cdef19b02128a9f498d6a36482 (diff) | |
parent | 5ccee32ec2ba38743c6b96867db3e1b5151e45e4 (diff) |
Merge branch 'dfsg/latest' into debian/sid
Diffstat (limited to 'src/Simplex_tree/example/README')
-rw-r--r-- | src/Simplex_tree/example/README | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/Simplex_tree/example/README b/src/Simplex_tree/example/README new file mode 100644 index 00000000..a9498173 --- /dev/null +++ b/src/Simplex_tree/example/README @@ -0,0 +1,73 @@ +To build the example, run in a Terminal: + +cd /path-to-gudhi/ +cmake . +cd /path-to-example/ +make + + +Example of use : + +*** Simple simplex tree construction + +./Simplex_tree_example_simple_simplex_tree + +******************************************************************** +EXAMPLE OF SIMPLE INSERTION + * INSERT 0 + + 0 INSERTED + * INSERT 1 + + 1 INSERTED + * INSERT (0,1) + + (0,1) INSERTED + * INSERT 2 + + 2 INSERTED + * INSERT (2,0) + + (2,0) INSERTED + * INSERT (2,1) + + (2,1) INSERTED + * INSERT (2,1,0) + + (2,1,0) INSERTED + * INSERT 3 + + 3 INSERTED + * INSERT (3,0) + + (3,0) INSERTED + * INSERT 0 (already inserted) + - 0 NOT INSERTED + * INSERT (2,1,0) (already inserted) + - (2,1,0) NOT INSERTED +******************************************************************** +* The complex contains 9 simplices + - dimension 2 - filtration 0.4 +* Iterator on Simplices in the filtration, with [filtration value]: + [0.1] 0 + [0.1] 1 + [0.1] 2 + [0.1] 3 + [0.2] 1 0 + [0.2] 2 0 + [0.2] 2 1 + [0.2] 3 0 + [0.3] 2 1 0 + +*** Simplex tree construction with Z/2Z coefficients on weighted graph Klein bottle file: + +./Simplex_tree_example_from_cliques_of_graph ../../../data/points/Klein_bottle_complex.txt 2 +Insert the 1-skeleton in the simplex tree in 0 s. +Expand the simplex tree in 0 s. +Information of the Simplex Tree: + Number of vertices = 10 Number of simplices = 82 + +with Z/3Z coefficients: + +./Simplex_tree_example_from_cliques_of_graph ../../../data/points/Klein_bottle_complex.txt 3 + +Insert the 1-skeleton in the simplex tree in 0 s. +Expand the simplex tree in 0 s. +Information of the Simplex Tree: + Number of vertices = 10 Number of simplices = 106 + +*** Simplex_tree computed and displayed from a 3D alpha complex: + [ Requires CGAL, GMP and GMPXX to be installed] + +./Simplex_tree_example_alpha_shapes_3_from_off ../../../data/points/bunny_5000 |