def __calculate_neighborhood(self, block_max_corner):
dimension = len(block_max_corner)<EOL>length_edges = [self.__max_corner[i] - self.__min_corner[i] for i in range(dimension)]<EOL>neighborhood_score = <NUM_LIT:0><EOL>for i in range(dimension):<EOL><INDENT>diff = abs(block_max_corner[i] - self.__max_corner[i])<EOL>if diff <= length_edges[i] + length_edges[i] * <NUM_LIT>:<EOL><INDENT>neighborhood_score += <NUM_LIT:1><EOL><DEDENT><DEDENT>return neighborhood_score<EOL>
!
        @brief Calculates neighborhood score that defined whether blocks are neighbors.

        @param[in] block_max_corner (list): Maximum coordinates of other block.

        @return (uint) Neighborhood score.