DiscreteMorse

org.appliedtopology.tda4j.DiscreteMorse
object DiscreteMorse

Discrete Morse theory on a filtered complex: apply finds a matching that respects the filtration (a pair enters at one value) and returns the MorseComplex.

val rips = VietorisRips(points, maxDimension = 2)
val morse = DiscreteMorse(rips)
morse.critical.size                      // far fewer cells than `rips`
Persistence(morse.stream, maxDimension = 2)   // the same bars as Persistence(rips, maxDimension = 2)

The matching is made level by level, a level being the cells that enter at one value, by elementary collapses (Strategy.Reduction: a cell with exactly one coface in the level, paired with it) or by elementary coreductions (Strategy.Coreduction: a cell with exactly one face in the level, paired with it), and when neither applies the cell of highest (respectively lowest) dimension is left critical. Pairs inside one level are acyclic, and a gradient path never goes back up in the filtration, so the matching is acyclic as a whole; the pairs are the apparent pairs of Ripser and more.

Attributes

Experimental
true
Source
DiscreteMorse.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Strategy

How cells are paired inside a level: by faces that have a single coface (Reduction) or cofaces that have a single face (Coreduction). The two find different matchings, and both are acyclic.

How cells are paired inside a level: by faces that have a single coface (Reduction) or cofaces that have a single face (Coreduction). The two find different matchings, and both are acyclic.

Attributes

Source
DiscreteMorse.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[CellT](stream: StratifiedCellStream[CellT, Double], strategy: Strategy = ...)(using cells: OrderedCell { type Self = CellT; }): MorseComplex[CellT]

Attributes

Source
DiscreteMorse.scala