4.1. Compute Reeb Graph from Lower Star Filtration

The computeReeb 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.computereeb.computeReeb(K, verbose=False)[source]

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

Parameters:
  • K (LowerStar) – 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.LowerStar import LowerStar
>>> K = LowerStar()
>>> 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 = computeReeb(K)
>>> R.draw()