decomposes the group element g as a product of generators of group.
- The group element g must belong to the given group.
- GroupElementToWord[group,g] gives the word of g in the form of a list of nonzero integers representing generators in the list returned by GroupGenerators[group]. A positive integer in the word represents the generator, and a negative integer represents the inverse of the generator.
Introduced in 2012