Graded Lie algebras of maximal class, III.