Perpetual cutoff method and CDE(K,N) condition on graphs