find: Find simplices

Description Usage Arguments Details Value Usage See Also

View source: R/simplex_tree.R

Description

Returns whether supplied simplices exist in the complex.

Usage

1
find(st, simplices)

Arguments

st

a simplex tree.

simplices

simplices to insert, either as a vector, a list of vectors, or a column-matrix. See details.

Details

Traverses the simplex tree looking for simplex, returning whether or not it exists. simplex can be specified as vector to represent a single simplex, and a list to represent a set of simplices. Each simplex is sorted before traversing the trie.

If simplices is a vector, it's assumed to be a simplex. If a list, its assumed each element in the list represents a simplex (as vectors). If the simplices to insert are all of the same dimension, you can also optionally use a matrix, where each column is assumed to be a simplex.

Value

boolean indicating whether or not simplex exists in the tree.

Usage

st

See Also

insert remove


simplextree documentation built on Sept. 13, 2020, 5:06 p.m.