| VietorisRipsComplex | R Documentation |
Construct a Vietoris–Rips Complex (1-skeleton + maximal simplices)
VietorisRipsComplex(points, epsilon)
points |
A numeric matrix or data.frame with one point per row (columns are coordinates). |
epsilon |
A positive numeric threshold; connect points with distance < |
The Vietoris–Rips complex at scale \epsilon includes a simplex for every
finite set of points with pairwise distances < \epsilon. This function
constructs the 1-skeleton (edges only) and then uses maximal cliques in that
graph as the maximal simplices.
A list with:
An igraph object representing the 1-skeleton.
A list of integer vectors, each the vertex indices of a maximal simplex.
points <- matrix(c(0, 1, 1, 0, 0, 0, 1, 1), ncol = 2)
epsilon <- 1.5
vr_complex <- VietorisRipsComplex(points, epsilon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.