def way(routing, start, end):
    """Return the route from the start to the end as a list"""
    route = []
    current_node = end
    while current_node != start:
        route.insert(0, current_node)
        current_node = routing[current_node]
    return route