next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
GradedLieAlgebras :: deglength

deglength -- the length of each weight of the generators of the Lie algebra

Synopsis

Description

Observe that the program adds an extra homological degree 0 if the Lie algebra has no differential in input.

i1 : L1=lieAlgebra({a,b,c},{},genWeights=>{{1,0},{1,0},{2,1}},genDiffs=>{[],[],[]})

o1 = L1

o1 : LieAlgebra
i2 : L1.deglength

o2 = 2
i3 : L2=lieAlgebra({a,b,c},{},genWeights=>{{1,0},{1,0},{2,1}})

o3 = L2

o3 : LieAlgebra
i4 : L2.deglength

o4 = 3

For the programmer

The object deglength is a symbol.