def METHOD_NAME(self, end_vertices: Iterable[int]) -> List[Edge]:
    res = []
    for vertex in end_vertices:
        res.extend(self.in_edges.get(vertex, []))
    return self.sort_edged_by_dest_out_degree(res)