AC，类似于copy graph