% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simplicial.R
\name{betti_numbers}
\alias{betti_numbers}
\title{Betti Numbers}
\usage{
betti_numbers(sc)
}
\arguments{
\item{sc}{A \code{simplicial_complex} object.}
}
\value{
Named integer vector \code{c(b0 = ..., b1 = ..., ...)}.
}
\description{
Computes Betti numbers: \eqn{\beta_0} (components), \eqn{\beta_1}
(loops), \eqn{\beta_2} (voids), etc.
}
\examples{
mat <- matrix(c(0,.6,.5,.6,0,.4,.5,.4,0), 3, 3)
colnames(mat) <- rownames(mat) <- c("A","B","C")
sc <- build_simplicial(mat, threshold = 0.3)
betti_numbers(sc)

}
