def build_adjacency_list(order, edges):
    """
    Builds an adjacency list for a directed graph with the given order (number
    of vertices) and edges.
    """
    adj = [[] for _ in range(order)]
    for src, dest in edges:
        adj[src].append(dest)
    return adj