<｜begin▁of▁sentence｜>### Instruction:
Given a tree graph generated as a star graph with 5 leaf nodes connected to a central node (6 nodes in total), can you use NetworkX to create and output the corresponding Prüfer sequence of this tree?
### Response:
import networkx as nx

# Create a tree graph with 6 nodes
# For example, let's create a star graph which is a tree
G = nx.star_graph(5) # star_graph(n) generates a tree with n+1 nodes

# Convert the NetworkX graph to a Prüfer sequence
prufer_sequence = nx.to_prufer_sequence(G)

# Print the Prüfer sequence of the tree
print(prufer_sequence)
<|EOT|>
