summaryrefslogtreecommitdiff
path: root/example/Simplex_tree/README
blob: a94981730199ceaef81072d463cbf0ef5bb7a40a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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