find {simplextree} | R Documentation |
Find simplices
Description
Returns whether supplied simplices exist in the complex.
Usage
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