5. Example graphs
In this notebook, we show the available example graphs from the data module.
5.1. Reeb graphs
These cells generate the examples from the example Reeb graphs module.
[1]:
import cereeberus.data.ex_reebgraphs as ex_rg
import matplotlib.pyplot as plt
[2]:
R = ex_rg.torus(seed = 6)
R.draw(with_labels = False)
plt.title('Torus graph')
# plt.savefig('../images/torus.png', bbox_inches = 'tight')
[2]:
Text(0.5, 1.0, 'Torus graph')
[3]:
R = ex_rg.dancing_man(seed = 0)
R.draw(with_labels = False)
plt.title('Dancing Man')
# plt.savefig('../images/dancing_man.png', bbox_inches = 'tight')
[3]:
Text(0.5, 1.0, 'Dancing Man')
[4]:
R = ex_rg.juggling_man(seed = 0)
R.draw(with_labels = False)
plt.title('Juggling Man')
# plt.savefig('../images/juggling_man.png', bbox_inches = 'tight')
[4]:
Text(0.5, 1.0, 'Juggling Man')
[5]:
R = ex_rg.simple_loops(seed = 5)
R.draw(with_labels = False, cpx= 1.1)
plt.title('Simple loops')
# plt.savefig('../images/simple_loops.png', bbox_inches = 'tight')
[5]:
Text(0.5, 1.0, 'Simple loops')
5.2. Mapper Graphs
These cells generate the examples from the example mapper graphs module.
[25]:
import cereeberus.data.ex_mappergraphs as ex_mg
import matplotlib.pyplot as plt
[34]:
MG = ex_mg.torus(seed = 2)
print(f"Delta value is: {MG.delta}")
MG.draw(with_labels = False)
plt.title('Torus graph mapper')
# plt.savefig('torus_mapper.png', bbox_inches = 'tight')
Delta value is: 0.1
[33]:
MG = ex_mg.dancing_man(seed = 2)
print(f"Delta value is: {MG.delta}")
MG.draw(with_labels = False)
plt.title('Dancing Man Mapper')
# plt.savefig('dancing_man_mapper.png', bbox_inches = 'tight')
Delta value is: 0.1
[35]:
MG = ex_mg.juggling_man(seed = 0)
print(f"Delta value is: {MG.delta}")
MG.draw(with_labels = False)
plt.title('Juggling Man Mapper')
# plt.savefig('juggling_man_mapper.png', bbox_inches = 'tight')
Delta value is: 0.1
[37]:
MG = ex_mg.simple_loops(seed = 5)
print(f"Delta value is: {MG.delta}")
MG.draw(with_labels = False, cpx= 1.1)
plt.title('Simple loops mapper')
# plt.savefig('simple_loops_mapper.png', bbox_inches = 'tight')
Delta value is: 1
5.3. Merge Trees
TODO
[ ]:
5.4. Embedded Graphs
TODO
[ ]: