curver.kernel.homology.HomologyClass

class curver.kernel.homology.HomologyClass(triangulation, algebraic)[source]

Bases: object

This represents a homology class of a triangulation (relative to its vertices).

canonical()[source]

Return the canonical form of this HomologyClass.

This is the HomologyClass that is homologous to this one and has weight 0 on each edge of the standard dual tree of the underlying triangulation.

is_canonical()[source]

Return whether this homology class is already in canonical form.

This is useful for constructing a basis of H_1(S).