Calculating the structure of a semisimple Lie algebra