def way_roy(routing, start, end):
    """Return the route from the start to the end as a list for the Roy-Warshall algorithm"""
    route = []
    current_node = start
    while current_node != end:
        route.append(current_node)
        current_node = routing[current_node][end]  # Follow the routing matrix
    route.append(end)
    return route