def get_edges_out_for_vertex(edges: list, vertex: int) -> list:
    """Get a sublist of edges that have the specified vertex as first element

    :param edges: edges of the graph
    :param vertex: vertex of which we want to find the corresponding edges

    :return: selected edges

    """
    return [e for e in edges if e[0] == vertex]