Used instance comparison of vertices to speed up path finding