abstract_simplicial_complex: Compute Euler characteristic for an abstract simplicial...

View source: R/AbstractSimplicialComplex.R

abstract_simplicial_complexR Documentation

Compute Euler characteristic for an abstract simplicial complex

Description

Compute Euler characteristic for an abstract simplicial complex

Usage

abstract_simplicial_complex(simplices, dimension, tol = NULL)

Arguments

simplices

A list of simplices (each a numeric vector).

dimension

Optional max dimension to compute up to.

tol

Optional numerical tolerance to pass to rankMatrix().

Value

The Euler characteristic \chi.

Examples

simplices <- list(c(1, 2), c(3, 4), c(2, 1, 3), c(4, 2))
abstract_simplicial_complex(simplices, 2)

SimplicialComplex documentation built on Nov. 5, 2025, 7:40 p.m.