Throw exception when vertex id is overflowed

I think that since we are running experiments for several days, the vertex id can be actually overflowed and this could cause problems. Please, use NonterminalVertex::reset_vertex_id() between the experiments, where you are sure that the next set of vertices will not interact with any previous ones.