from simplextree import SimplexTree
= SimplexTree([range(3)])
st print(st)
Simplex Tree with (3, 3, 1) (0, 1, 2)-simplices
Inserts simplices into the Simplex Tree.
By definition, inserting a simplex also inserts all of its faces. If the simplex already exists in the complex, the tree is not modified.
Name | Type | Description | Default |
---|---|---|---|
simplices | Iterable[Collection] | Iterable of simplices to insert (each of which are SimplexLike) | required |
If the iterable is an 2-dim np.ndarray, then a p-simplex is inserted along each contiguous p+1 stride. Otherwise, each element of the iterable to casted to a Simplex and then inserted into the tree.
Simplex Tree with (3, 3, 1) (0, 1, 2)-simplices