update vertex and edge methods