Generalized competition index of primitive digraphs