<｜begin▁of▁sentence｜>### Instruction:
Given a tree with the edge set [(0, 3), (1, 3), (2, 3), (3, 4), (4, 5)], how do you convert it into a Prüfer sequence using NetworkX?
### Response:
import networkx as nx

# Create a tree
edges = [(0, 3), (1, 3), (2, 3), (3, 4), (4, 5)]
tree = nx.Graph(edges)

# Convert the tree to a Prüfer sequence
sequence = nx.to_prufer_sequence(tree)
print(sequence)
<|EOT|>
