adding the routine to study the dependencies with the number of neighbours