added solution of clone_graph