Added average number of neighbors to the output file in case WEIGHTS is activated