The Kier shape descriptor [tc00] can be defined as :
Equation 1. Kier shape 2
A means the number of nodes in the molecules graph. P2 is the number of paths of length 2 in the given molecule.