move method of vertex and edge from graph to large graph