% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Persistence.R
\name{restrict_filtration}
\alias{restrict_filtration}
\title{Restrict a filtration list to simplices up to a given dimension}
\usage{
restrict_filtration(filist, max_dimension)
}
\arguments{
\item{filist}{A filtration list, as produced by
\code{\link{build_filtration}}/\code{\link{build_flood_filtration}}.}

\item{max_dimension}{Maximum simplex dimension to keep (\code{0} = vertices
only, \code{1} = vertices + edges, etc.).}
}
\value{
A filtration list containing only the entries with dimension
  \code{<= max_dimension}, in the same relative order.
}
\description{
Drops every simplex of dimension greater than \code{max_dimension} from a
filtration list; everything else (order, ties, \code{t} values) is left
untouched.
}
\examples{
points <- matrix(c(0, 1, 1, 0, 0, 0, 1, 1), ncol = 2)
filtration <- build_filtration(points, method = "VR", eps_max = 1.2)
restrict_filtration(filtration, max_dimension = 1) # vertices + edges only
}
