Graph::resize to be able to allocate memory for vertices when their number is known in advance
experimenting with allocators, graph crashes