generics.faces
generics.faces(s, p=None, data=False, **kwargs)
Returns the faces of a simplicial object, optionally restricted by dimension.
If s has an existing method s.faces(p), then that method is called with additional keyword arguments kwargs.
Otherwise, the behavior of this function depends on the type-class of s. Namely, - if s is SimplexLike, then a generator enumerating p-combinations of s is returned. - if s is ComplexLike, then a generator enumerating p-faces of s (in any order) is returned. - if s is FiltrationLike, then a generator enumerating p-faces of s in filtration order is returned. - if s is none of the above but is Sized and Iterable, all combinations of s of length p+1 are chained and returned.