from cereeberus import ReebGraph
from cereeberus.data import ex_graphs
[docs]
def torus(seed=None):
'''
Returns the Reeb graph of a simple upright torus as a ReebGraph class.
Parameters:
seed (int): Optional. The seed to use for the random number generator, which only controls the layout function.
Returns:
ReebGraph: The Reeb graph of the torus.
.. figure:: ../../images/torus.png
:figwidth: 400px
'''
return ReebGraph(ex_graphs.torus_graph(), seed=seed)
[docs]
def dancing_man(seed=None):
'''
Returns the Reeb graph of the dancing man as a ReebGraph class.
Parameters:
seed (int): Optional. The seed to use for the random number generator, which only controls the layout function.
Returns:
ReebGraph: The Reeb graph of the dancing man.
.. figure:: ../../images/dancing_man.png
:figwidth: 400px
'''
return ReebGraph(ex_graphs.dancing_man(), seed=seed)
[docs]
def juggling_man(seed=None):
'''
Returns the Reeb graph of the juggling man as a ReebGraph class.
Parameters:
seed (int): Optional. The seed to use for the random number generator, which only controls the layout function.
Returns:
ReebGraph: The Reeb graph of the juggling man.
.. figure:: ../../images/juggling_man.png
:figwidth: 400px
'''
return ReebGraph(ex_graphs.juggling_man(), seed=seed)
[docs]
def simple_loops(seed=None):
'''
Returns the Reeb graph of the simple loops example.
Parameters:
seed (int): Optional. The seed to use for the random number generator, which only controls the layout function.
Returns:
ReebGraph: The Reeb graph of the simple loops example.
.. figure:: ../../images/simple_loops.png
:figwidth: 400px
'''
return ReebGraph(ex_graphs.simple_loops(), seed=seed)
[docs]
def simple_loops_unordered(seed=None):
'''
Returns the Reeb graph of the simple loops example.
Parameters:
seed (int): Optional. The seed to use for the random number generator, which only controls the layout function.
Returns:
ReebGraph: The Reeb graph of the simple loops example.
'''
return ReebGraph(ex_graphs.simple_loops_unordered(), seed=seed)