def __init__(self,<EOL>transit_events,<EOL>target_stop,<EOL>start_time=None,<EOL>end_time=None,<EOL>transfer_margin=<NUM_LIT:0>,<EOL>walk_network=None,<EOL>walk_speed=<NUM_LIT>,<EOL>verbose=False):
AbstractRoutingAlgorithm.__init__(self)<EOL>self._target = target_stop<EOL>self._connections = transit_events<EOL>if start_time is None:<EOL><INDENT>start_time = transit_events[-<NUM_LIT:1>].departure_time<EOL><DEDENT>if end_time is None:<EOL><INDENT>end_time = transit_events[<NUM_LIT:0>].departure_time<EOL><DEDENT>self._start_time = start_time<EOL>self._end_time = end_time<EOL>self._transfer_margin = transfer_margin<EOL>if walk_network is None:<EOL><INDENT>walk_network = networkx.Graph()<EOL><DEDENT>self._walk_network = walk_network<EOL>self._walk_speed = float(walk_speed)<EOL>self._verbose = verbose<EOL>self.__trip_min_arrival_time = defaultdict(lambda: float("<STR_LIT>"))<EOL>self._stop_profiles = defaultdict(lambda: NodeProfileSimple())<EOL>self._stop_profiles[self._target] = NodeProfileSimple(<NUM_LIT:0>)<EOL>if target_stop in walk_network.nodes():<EOL><INDENT>for target_neighbor in walk_network.neighbors(target_stop):<EOL><INDENT>edge_data = walk_network.get_edge_data(target_neighbor, target_stop)<EOL>walk_duration = edge_data["<STR_LIT>"] / self._walk_speed<EOL>self._stop_profiles[target_neighbor] = NodeProfileSimple(walk_duration)<EOL><DEDENT><DEDENT>
Parameters
----------
transit_events: list[Connection]
    events are assumed to be ordered in DECREASING departure_time (!)
target_stop: int
    index of the target stop
start_time : int, optional
    start time in unixtime seconds
end_time: int, optional
    end time in unixtime seconds (no connections will be scanned after this time)
transfer_margin: int, optional
    required extra margin required for transfers in seconds
walk_speed: float, optional
    walking speed between stops in meters / second.
walk_network: networkx.Graph, optional
    each edge should have the walking distance as a data attribute ("distance_shape") expressed in meters
verbose: boolean, optional
    whether to print out progress