generics.dim
generics.dim(s, **kwargs)
Returns the dimension of a simplicial object.
If s has an existing method s.dim(…), 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 with dimension p, then p is returned. - if s is ComplexLike, then the largest dimension p of any face in s is returned. - if s is none of the above but is Sized, len(s) - 1 is returned.