4.1. Compute Reeb Graph from Lower Star Filtration

The reeb_of_lower_star module provides functionality to compute the Reeb graph from a lower star filtration. Information on the lower star filtration can be found in the Lower Star Filtration for Simplicial Complexes documentation.

cereeberus.compute.reeb_of_lower_star.reeb_of_lower_star(K, verbose=False)[source]

Computes the Reeb graph of a Lower Star Simplicial Complex K.

Parameters:
  • K (LowerStarSC) – A Lower Star Simplicial Complex with assigned filtration values.

  • verbose (boolean) – Make it True if you want lots of printouts.

Returns:

The computed Reeb graph.

Return type:

ReebGraph

Example

>>> from cereeberus.reeb.lowerstarSC import LowerStarSC
>>> K = LowerStarSC()
>>> K.insert([0, 1, 2])
>>> K.insert([1, 3])
>>> K.insert([2,3])
>>> K.assign_filtration([0], 0.0)
>>> K.assign_filtration([1], 3.0)
>>> K.assign_filtration([2], 5.0)
>>> K.assign_filtration([3], 7)
>>> R = reeb_of_lower_star(K)
>>> R.draw()