Comparison of densities of neighborhoods (search)