Fix problem with Graph.purge_vertices(in_place=True)

This fixes issue #485.
6 jobs for master in 207 minutes and 14 seconds (queued for 5 seconds)