def simplex_dimension(simplex):
    """
    Get the dimension of a simplex.

    :param simplex: Simplex defined by a list of vertex indices.
    :type simplex: List[int]
    :return: Dimension of the simplex.
    """
    return len(simplex) - 1