added out_vertices and out_edges