Given a reference to the root of a graph where each node has a reference to a unique node in the graph, you're tasked with creating a "clone" of this graph by performing a deep copy of all its nodes. This means that each node in the new graph should be an exact copy of its corresponding node in the original graph, including edge connections.
The function should take a reference to the root of the original graph and return a reference to the root of the cloned graph. The clone should be an exact replica of the original graph, including all nodes and edges.
Input: {"input_data":[1,2,3]} Output: [1,2,3]
Solve problems, verify your skills, and earn XP.