|
2 | 2 | from cereeberus.data import ex_graphs |
3 | 3 |
|
4 | 4 | def torus(seed=None): |
5 | | - def torus(seed=None): |
6 | | - ''' |
7 | | - Returns the Reeb graph of a simple upright torus as a ReebGraph class. |
8 | | -
|
9 | | - Parameters: |
10 | | - seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
11 | | -
|
12 | | - Returns: |
13 | | - ReebGraph: The Reeb graph of the torus. |
14 | | - |
15 | | - .. figure:: images/torus.png |
16 | | - :figwidth: 200px |
17 | | -
|
18 | | - ''' |
19 | | - return ReebGraph(ex_graphs.torus_graph(), seed=seed) |
20 | | - |
21 | | - def dancing_man(seed=None): |
22 | | - ''' |
23 | | - Returns the Reeb graph of the dancing man as a ReebGraph class. |
24 | | -
|
25 | | - Parameters: |
26 | | - seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
27 | | -
|
28 | | - Returns: |
29 | | - ReebGraph: The Reeb graph of the dancing man. |
30 | | - ''' |
31 | | - return ReebGraph(ex_graphs.dancing_man(), seed=seed) |
32 | | - |
33 | | - def juggling_man(seed=None): |
34 | | - ''' |
35 | | - Returns the Reeb graph of the juggling man as a ReebGraph class. |
36 | | -
|
37 | | - Parameters: |
38 | | - seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
39 | | -
|
40 | | - Returns: |
41 | | - ReebGraph: The Reeb graph of the juggling man. |
42 | | - ''' |
43 | | - return ReebGraph(ex_graphs.juggling_man(), seed=seed) |
44 | | - |
45 | | - def simple_loops(seed=None): |
46 | | - ''' |
47 | | - Returns the Reeb graph of the simple loops example. |
48 | | -
|
49 | | - Parameters: |
50 | | - seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
51 | | -
|
52 | | - Returns: |
53 | | - ReebGraph: The Reeb graph of the simple loops example. |
54 | | - ''' |
55 | | - return ReebGraph(ex_graphs.simple_loops(), seed=seed) |
| 5 | + ''' |
| 6 | + Returns the Reeb graph of a simple upright torus as a ReebGraph class. |
56 | 7 |
|
57 | | - def simple_loops_unordered(seed=None): |
58 | | - ''' |
59 | | - Returns the Reeb graph of the simple loops example. |
| 8 | + Parameters: |
| 9 | + seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
60 | 10 |
|
61 | | - Parameters: |
62 | | - seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
| 11 | + Returns: |
| 12 | + ReebGraph: The Reeb graph of the torus. |
| 13 | + |
| 14 | + .. figure:: ../../images/torus.png |
| 15 | + :figwidth: 400px |
63 | 16 |
|
64 | | - Returns: |
65 | | - ReebGraph: The Reeb graph of the simple loops example. |
66 | | - ''' |
67 | | - return ReebGraph(ex_graphs.simple_loops_unordered(), seed=seed) |
| 17 | + ''' |
68 | 18 | return ReebGraph(ex_graphs.torus_graph(), seed=seed) |
69 | 19 |
|
70 | 20 | def dancing_man(seed=None): |
71 | 21 | ''' |
72 | 22 | Returns the Reeb graph of the dancing man as a ReebGraph class. |
| 23 | +
|
| 24 | + Parameters: |
| 25 | + seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
| 26 | +
|
| 27 | + Returns: |
| 28 | + ReebGraph: The Reeb graph of the dancing man. |
| 29 | + |
| 30 | + .. figure:: ../../images/dancing_man.png |
| 31 | + :figwidth: 400px |
73 | 32 | ''' |
74 | 33 | return ReebGraph(ex_graphs.dancing_man(), seed=seed) |
75 | 34 |
|
76 | 35 | def juggling_man(seed=None): |
77 | 36 | ''' |
78 | 37 | Returns the Reeb graph of the juggling man as a ReebGraph class. |
| 38 | +
|
| 39 | + Parameters: |
| 40 | + seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
| 41 | +
|
| 42 | + Returns: |
| 43 | + ReebGraph: The Reeb graph of the juggling man. |
| 44 | +
|
| 45 | + .. figure:: ../../images/juggling_man.png |
| 46 | + :figwidth: 400px |
79 | 47 | ''' |
80 | 48 | return ReebGraph(ex_graphs.juggling_man(), seed=seed) |
81 | 49 |
|
82 | 50 | def simple_loops(seed=None): |
83 | 51 | ''' |
84 | | - Returns the Reeb graph of the simple loops example |
| 52 | + Returns the Reeb graph of the simple loops example. |
| 53 | +
|
| 54 | + Parameters: |
| 55 | + seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
| 56 | +
|
| 57 | + Returns: |
| 58 | + ReebGraph: The Reeb graph of the simple loops example. |
| 59 | +
|
| 60 | + .. figure:: ../../images/simple_loops.png |
| 61 | + :figwidth: 400px |
85 | 62 | ''' |
86 | 63 | return ReebGraph(ex_graphs.simple_loops(), seed=seed) |
87 | 64 |
|
88 | 65 | def simple_loops_unordered(seed=None): |
89 | 66 | ''' |
90 | | - Returns the Reeb graph of the simple loops example |
| 67 | + Returns the Reeb graph of the simple loops example. |
| 68 | +
|
| 69 | + Parameters: |
| 70 | + seed (int): Optional. The seed to use for the random number generator, which only controls the layout function. |
| 71 | +
|
| 72 | + Returns: |
| 73 | + ReebGraph: The Reeb graph of the simple loops example. |
91 | 74 | ''' |
92 | 75 | return ReebGraph(ex_graphs.simple_loops_unordered(), seed=seed) |
0 commit comments