Macaulay2 » Documentation
Packages » CellularResolutions :: cellLabel
next | previous | forward | backward | up | index | toc

# cellLabel -- return the label of a cell

- Usage:
    `cellLabel C`
- Inputs:
  - C, a cell,
- Outputs:
  - a thing, the label of the cell

## Description

The label is provided at the creation of the cell and cannot be modified, neither this function nor any of the cell creation functions attempt to interpret the label and while the labels generally should be monomials, this package makes no attempt to enforce such a requirement.

    i1 : R = QQ[x,y];

    i2 : v1 = newSimplexCell({},x^2);

    i3 : v2 = newSimplexCell({},x*y^2);

    i4 : v3 = newSimplexCell {};

    i5 : e = newSimplexCell {v1,v2};

    i6 : C = cellComplex(R,{e,v3});

    i7 : cellLabel v1

          2
    o7 = x

    o7 : R

    i8 : cellLabel e

          2 2
    o8 = x y

    o8 : R

    i9 : cellLabel v3

    o9 = 1

## See also

- Cell -- the class of all cells in cell complexes
- newSimplexCell -- create a new cell
- newCell -- creates a new cell

## Ways to use cellLabel:

- `cellLabel(Cell)`

## For the programmer

The object cellLabel is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/CellularResolutions/doc.m2:297:0.