Macaulay2 » Documentation
Packages » CellularResolutions :: cells(ZZ,CellComplex)
next | previous | forward | backward | up | index | toc

cells(ZZ,CellComplex) -- return the cells of a cell complex

Synopsis

Description

Given a dimension r and a cell complex C, cells returns a list of all the cells of dimension r in C. The order of the returned cells is arbitrary.

i1 : R = QQ[x,y,z];
i2 : vx = newSimplexCell({},x);
i3 : vy = newSimplexCell({},y);
i4 : vz = newSimplexCell({},z);
i5 : exy = newSimplexCell {vx,vy};
i6 : C = cellComplex(R,{exy,vz});
i7 : cells(0,C)

o7 = {Cell of dimension 0 with label y, Cell of dimension 0 with label z,
     ------------------------------------------------------------------------
     Cell of dimension 0 with label x}

o7 : List
i8 : cells(1,C)

o8 = {Cell of dimension 1 with label x*y}

o8 : List
i9 : cells(2,C)

o9 = {}

o9 : List

See also

Ways to use this method: