Generate a tree from a given Prufer code and visualize the graph.
Extra information about Prufer codes: Wikipedia.