Solution for Clone Graph.