code for Clone Graph