def get_vertices(edges: list) -> list:
    """Get all the vertices belonging to input edges

    :param edges: edges in the graph

    :return: vertices

    """
    edges_list_of_tuples = [list(e) for e in edges]
    return list(set(sum(edges_list_of_tuples, [])))