class DefaultMutablePath implements MutablePath<V, E> {

    @Override
    public void removeEdge(E edge) {
        checkArgument(edge.src().equals(edge.dst()) ||
                              edges.indexOf(edge) == 0 ||
                              edges.lastIndexOf(edge) == edges.size() - 1,
                      "Edge must be at start or end of path, or it must be a cyclic edge");
        edges.remove(edge);
    }

    public  DefaultMutablePath();
    public  DefaultMutablePath(Path<V, E> path);

}