Added reset_G and edges_to_nbors.