def n_oldest_actors(actors, n):
    """
    Query helper to get the n oldest ACTORS out of the given graph.
    :param actors: Dictionary (name of actor --> Actor node)
    :param n: The number of oldest ACTORS to find.
    :return: List of n oldest ACTORS, ordered oldest to youngest. If n > length
    of ACTORS dictionary, then all the ACTORS are returned, ordered oldest to
    youngest.
    """
    actors_sorted_by_age = sorted(actors, key=lambda x: actors[x].age, reverse=True)
    return actors_sorted_by_age[:min(n, len(actors_sorted_by_age))]