petls.sheaf_simplex_tree#
- class petls.sheaf_simplex_tree(_st: gudhi.simplex_tree, _extra_data: dict, _restriction: Callable[[list[int], list[int], sheaf_simplex_tree], float])[source]#
Wrap a Gudhi simplex tree with possibly added data and a given restriction function.
- Attributes:
- stgudhi.simplex_tree
Underlying simplex tree
- extra_datadict
Keys are simplices (list of int) converted to tuples, e.g. tuple([0,1,2]). Values can be anything.
- restrictionCallable[[list[int], list[int], ‘sheaf_simplex_tree’], float]
Restriction function from a simplex to a coface, which may need knowledge from the whole sheaf_simplex_tree. e.g. my_restriction(simplex, coface, sst)
- complex_dimint
Dimension of the complex, same as dimension of the simplex tree
Methods
coface_index(simplex, coface):
Get the index of the missing vertex, e.g. coface_index([0,1,3],[0,1,2,3]) = 2.
apply_restriction_function():
Get coboundaries and filtrations
- __init__(_st: gudhi.simplex_tree, _extra_data: dict, _restriction: Callable[[list[int], list[int], sheaf_simplex_tree], float])[source]#
Methods
__init__
(_st, _extra_data, _restriction)Get coboundaries and filtrations
coface_index
(simplex, coface)Get the index of the missing vertex, e.g. coface_index([0,1,3],[0,1,2,3]) = 2.
reindex_coboundaries
(coboundaries_triples)