next | previous | forward | backward | up | top | index | toc | Macaulay2 website
SimplicialComplexes :: dim(Face)

dim(Face) -- The dimension of a face.

Synopsis

Description

Returns the dimension of a Face, i.e., the number of vertices F minus 1.

i1 : K=QQ;
i2 : R=K[x_0..x_4];
i3 : I=monomialIdeal(x_0*x_1,x_1*x_2,x_2*x_3,x_3*x_4,x_4*x_0);

o3 : MonomialIdeal of R
i4 : D=simplicialComplex I

o4 = | x_2x_4 x_1x_4 x_1x_3 x_0x_3 x_0x_2 |

o4 : SimplicialComplex
i5 : fc=faces(D,useFaceClass=>true)

o5 = MutableHashTable{...3...}

o5 : MutableHashTable
i6 : apply(-1..1, j->apply(fc#j,dim))

o6 = ({-1}, {0, 0, 0, 0, 0}, {1, 1, 1, 1, 1})

o6 : Sequence

See also