<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(0, 1), (1, 2), (2, 3), (3, 0), (4, 5)], how can we find the connected components using NetworkX?
### Response:
import networkx as nx

# Create an undirected graph
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2), (2, 3), (3, 0), (4, 5)])

# Find the connected components
components = list(nx.connected_components(G))

# Print the connected components
print('Connected components:', components)
<|EOT|>
