intf: use correct exception names

The exception name that succ and pred throw when the vertex is not in the
graph is Invalid_argument, not Not_found, which is the one that the code
previously used.