debug reverse adj list