from simplextree import SimplexTree
from itertools import combinations
= SimplexTree(combinations(range(8), 2))
st print(st)
Simplex Tree with (8, 28) (0, 1)-simplices
Performs a k-expansion of the complex.
This function is particularly useful for expanding clique complexes beyond their 1-skeleton.
Name | Type | Description | Default |
---|---|---|---|
k | int | maximum dimension to expand to. | required |
f | Optional[Callable[[Collection], bool]] | boolean predicate which returns whether a simplex should added to the complex (and further expanded). | None |
from simplextree import SimplexTree
from itertools import combinations
st = SimplexTree(combinations(range(8), 2))
print(st)
Simplex Tree with (8, 28) (0, 1)-simplices
Simplex Tree with (8, 28, 21) (0, 1, 2)-simplices