def __check_course_to_out(self, n):
    if (not self.is_active[n]):
        self.is_active[n] = True
        t = self.gene[n][0]
        if (n >= self.net_info.node_num):
            in_num = self.net_info.out_in_num[t]
        else:
            in_num = self.net_info.func_in_num[t]
        for i in range(in_num):
            if (self.gene[n][(i + 1)] >= self.net_info.input_num):
                self.__check_course_to_out((self.gene[n][(i + 1)] - self.net_info.input_num))
def __check_course_to_out(self, n):
    if (not self.is_active[n]):
        self.is_active[n] = True
        t = self.gene[n][0]
        if (n >= self.net_info.node_num):
            in_num = self.net_info.out_in_num[t]
        else:
            in_num = self.net_info.func_in_num[t]
        for i in range(in_num):
            if (self.gene[n][(i + 1)] >= self.net_info.input_num):
                self.__check_course_to_out((self.gene[n][(i + 1)] - self.net_info.input_num))