p-value calculation for clique