remove: Remove simplices

Description Usage Arguments Details See Also

View source: R/simplex_tree.R

Description

Removes simplices from the simplex tree. Individual simplices are specified as vectors, and a set of simplices as a list of vectors.

Usage

1
remove(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

This function allows removal of a arbitrary order simplices. If simplex already exists in the tree, it is removed, otherwise the tree is not modified. simplex is sorted before traversing the trie. Cofaces of simplex are also removed.

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.

See Also

find remove


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