complexes.SetComplex.SetComplex

complexes.SetComplex.SetComplex(self, simplices=None)

Abstract Simplicial Complex

Methods

Name Description
add Adds a simplex to the complex.
card Cardinality of the complex.
cofaces Enumerates the cofaces of a give simplex.
dim Returns the maximal dimension of any simplex in the complex.
discard Removes a simplex from the complex.
faces Enumerates the (p)-faces of the complex.
remove Removes a simplex from the complex.
update Updates the complex by unioning with the given iterable of simplices.

add

complexes.SetComplex.SetComplex.add(self, item)

Adds a simplex to the complex.

Note that adding a simplex by definition with add all of its faces to the complex as well.

card

complexes.SetComplex.SetComplex.card(self, p=None)

Cardinality of the complex.

If p is supplied, returns the number of p-simplices in the complex. Otherwise, a tuple whose index p represents the number of p-simplices in the complex.

cofaces

complexes.SetComplex.SetComplex.cofaces(self, item)

Enumerates the cofaces of a give simplex.

dim

complexes.SetComplex.SetComplex.dim(self)

Returns the maximal dimension of any simplex in the complex.

discard

complexes.SetComplex.SetComplex.discard(self, item)

Removes a simplex from the complex.

Note that removing a simplex by definition with remove all of its cofaces from the complex as well.

faces

complexes.SetComplex.SetComplex.faces(self, p=None, **kwargs)

Enumerates the (p)-faces of the complex.

remove

complexes.SetComplex.SetComplex.remove(self, item)

Removes a simplex from the complex.

Note that removing a simplex by definition with remove all of its cofaces from the complex as well.

This function raises an exception if the supplied simplex is not found. For non-throwing version, see discard.

update

complexes.SetComplex.SetComplex.update(self, simplices)

Updates the complex by unioning with the given iterable of simplices.