def __init__(self,<EOL>dep_times=None,<EOL>walk_to_target_duration=float('<STR_LIT>'),<EOL>label_class=LabelTimeWithBoardingsCount,<EOL>transit_connection_dep_times=None,<EOL>closest_target=None,<EOL>node_id=None):
if dep_times is None:<EOL><INDENT>dep_times = []<EOL><DEDENT>n_dep_times = len(dep_times)<EOL>assert n_dep_times == len(set(dep_times)), "<STR_LIT>"<EOL>self._departure_times = list(reversed(sorted(dep_times)))<EOL>self.dep_times_to_index = dict(zip(self._departure_times, range(len(self._departure_times))))<EOL>self._label_bags = [[]] * len(self._departure_times)<EOL>self._walk_to_target_duration = walk_to_target_duration<EOL>self._min_dep_time = float('<STR_LIT>')<EOL>self.label_class = label_class<EOL>self.closest_target = closest_target<EOL>if self.label_class == LabelTimeBoardingsAndRoute and self._walk_to_target_duration < float('<STR_LIT>'):<EOL><INDENT>assert (self.closest_target is not None)<EOL><DEDENT>if transit_connection_dep_times is not None:<EOL><INDENT>self._connection_dep_times = transit_connection_dep_times<EOL><DEDENT>else:<EOL><INDENT>self._connection_dep_times = dep_times<EOL><DEDENT>assert (isinstance(self._connection_dep_times, (list, numpy.ndarray)))<EOL>self._closed = False<EOL>self._finalized = False<EOL>self._final_pareto_optimal_labels = None<EOL>self._real_connection_labels = None<EOL>self.node_id = node_id<EOL>
Parameters
----------
dep_times
walk_to_target_duration
label_class: label class to be used
transit_connection_dep_times:
    if not given, all connections are assumed to be real connections
closest_target: int, optional
    stop_I of the closest target if within walking distance (and Routes are recorded)