clone graph solution