MorseComplex

org.appliedtopology.tda4j.MorseComplex
final class MorseComplex[CellT]

A discrete Morse complex of a filtered complex: an acyclic matching of cells into pairs (a, b) with a a face of b of one dimension less and both entering at the same filtration value, the cells left over (the critical cells) and the Morse boundary between them. Its persistent homology is that of the filtered complex it comes from, and it has fewer cells, often far fewer: Persistence(morse.stream) computes the barcode on the critical cells, and morse.lift takes a representative back to the original complex. Build it with DiscreteMorse.

The Morse boundary of a critical cell τ is found by flowing its boundary down the gradient: a face a that is the lower member of a pair (a, b) is replaced by the other faces of b (subtracting ∂b times the coefficient of a over the incidence of a in b), until only critical cells, and cells matched with a face below them, remain, and the latter are dropped. It is computed in the coefficients asked for, so a pair needs an incidence of +1 or -1, which is a unit in every field.

Attributes

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

Members list

Value members

Concrete methods

def boundary[F](cell: CellT): Seq[(CellT, F)]

The Morse boundary of the critical cell cell: critical cells of one dimension less with coefficients.

The Morse boundary of the critical cell cell: critical cells of one dimension less with coefficients.

Attributes

Source
DiscreteMorse.scala
def criticalCount(k: Int): Int

The number of critical cells of dimension k.

The number of critical cells of dimension k.

Attributes

Source
DiscreteMorse.scala
def isCritical(cell: CellT): Boolean

Whether cell is not in any pair.

Whether cell is not in any pair.

Attributes

Source
DiscreteMorse.scala
def lift[F](cell: CellT): Seq[(CellT, F)]

The chain of the original complex that the critical cell cell stands for: the cell itself minus the cells it was paired through, found by the flow of its boundary. Lifting commutes with the boundary (the boundary of the lift of cell is the lift of its Morse boundary), so a cycle of the Morse complex lifts to a cycle with the same class, supported on cells that entered no later.

The chain of the original complex that the critical cell cell stands for: the cell itself minus the cells it was paired through, found by the flow of its boundary. Lifting commutes with the boundary (the boundary of the lift of cell is the lift of its Morse boundary), so a cycle of the Morse complex lifts to a cycle with the same class, supported on cells that entered no later.

Attributes

Source
DiscreteMorse.scala
def lift[F](chain: Chain[MorseCell[CellT], F])(using fr: Field { type Self = F; }): Chain[CellT, F]

lift of a chain of Morse cells, as a chain of cells of the original complex.

lift of a chain of Morse cells, as a chain of cells of the original complex.

Attributes

Source
DiscreteMorse.scala
def partner(cell: CellT): Option[CellT]

The cell cell is paired with, its coface if it is a face in a pair and its face if it is the coface.

The cell cell is paired with, its coface if it is a face in a pair and its face if it is the coface.

Attributes

Source
DiscreteMorse.scala

Concrete fields

val cells: is[CellT, OrderedCell]

Attributes

Source
DiscreteMorse.scala
val critical: Vector[CellT]

Attributes

Source
DiscreteMorse.scala
val pairs: Map[CellT, CellT]

Attributes

Source
DiscreteMorse.scala
val source: StratifiedCellStream[CellT, Double]

Attributes

Source
DiscreteMorse.scala
lazy val stream: StratifiedCellStream[MorseCell[CellT], Double]

The filtered Morse complex as a stream of MorseCells, every critical cell entering when its cell did: what Persistence takes to compute the barcode of the original complex on fewer cells.

The filtered Morse complex as a stream of MorseCells, every critical cell entering when its cell did: what Persistence takes to compute the barcode of the original complex on fewer cells.

Attributes

Source
DiscreteMorse.scala