def get_nearest_successors(self, type_measurement):
nearest_node1 = None;<EOL>nearest_node2 = None;<EOL>nearest_distance = float("<STR_LIT>");<EOL>for i in range(<NUM_LIT:0>, len(self.successors)):<EOL><INDENT>candidate1 = self.successors[i];<EOL>for j in range(i + <NUM_LIT:1>, len(self.successors)):<EOL><INDENT>candidate2 = self.successors[j];<EOL>candidate_distance = candidate1.get_distance(candidate2, type_measurement);<EOL>if (candidate_distance < nearest_distance):<EOL><INDENT>nearest_distance = candidate_distance;<EOL>nearest_node1 = candidate1;<EOL>nearest_node2 = candidate2;<EOL><DEDENT><DEDENT><DEDENT>return [nearest_node1, nearest_node2]<EOL>
!
        @brief Find pair of nearest successors of the node in line with measurement type.

        @param[in] type_measurement (measurement_type): Measurement type that is used for obtaining nearest successors.

        @return (list) Pair of nearest successors represented by list.