FiniteCategory

org.appliedtopology.tda4j.sset.FiniteCategory
See theFiniteCategory companion object

A finite category: objects 0 until objectCount, morphisms 0 until morphismCount. Morphism f goes from source(f) to target(f); andThen(f, g) is the composite "first f, then g", defined when target(f) == source(g) (diagrammatic order, so a monoid's multiply(a, b) is andThen(a, b)).

The nerve (CategoryNerve) is its classifying space. Implement the six abstract members to define a category by functions, or use a constructor of the companion: fromMonoid, fromPoset, freeOnAcyclicQuiver, actionGroupoid, homotopyOrbits. validate() checks the category laws.

Attributes

Companion
object
Experimental
true
Source
FiniteCategory.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def andThen(f: Int, g: Int): Int

f followed by g; only called with target(f) == source(g).

f followed by g; only called with target(f) == source(g).

Attributes

Source
FiniteCategory.scala
def identityOf(x: Int): Int

The identity morphism of object x.

The identity morphism of object x.

Attributes

Source
FiniteCategory.scala
def morphismCount: Int

Attributes

Source
FiniteCategory.scala
def objectCount: Int

Attributes

Source
FiniteCategory.scala
def source(f: Int): Int

Attributes

Source
FiniteCategory.scala
def target(f: Int): Int

Attributes

Source
FiniteCategory.scala

Concrete methods

def isIdentity(f: Int): Boolean

Attributes

Source
FiniteCategory.scala
def morphismName(f: Int): String

A label for morphism f, used in messages (default: its index).

A label for morphism f, used in messages (default: its index).

Attributes

Source
FiniteCategory.scala
def validate(): Seq[String]

Checks ranges, identities, that composites have the right ends, the unit laws and associativity; the empty list means this really is a category. One message per kind of failure.

Checks ranges, identities, that composites have the right ends, the unit laws and associativity; the empty list means this really is a category. One message per kind of failure.

Attributes

Source
FiniteCategory.scala

Concrete fields

lazy val nonIdentityFrom: IndexedSeq[IndexedSeq[Int]]

The non-identity morphisms out of each object, in index order: the edges the nerve extends chains by.

The non-identity morphisms out of each object, in index order: the edges the nerve extends chains by.

Attributes

Source
FiniteCategory.scala