def get_label_dummy_goal(vertex_input):
    """Get the index of the fictitious dummy goal (last vertex + 1)"""

    if isinstance(vertex_input, int):
        v_g = vertex_input + 1
        return v_g
    elif isinstance(vertex_input, list):
        v_g = vertex_input[-1] + 1
        return v_g
    else:
        print('Wrong type of input, accepts integer or list')
        return None