<｜begin▁of▁sentence｜>### Instruction:
Given two graphs G with edge set [(0, 1), (1, 2)] and H with edge set [(10, 11), (11, 12)], and choosing node 10 in H as the root, can you generate the rooted product of G and H using NetworkX and list its edges?
### Response:
import networkx as nx

# Create graphs G and H
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2)])

H = nx.Graph()
H.add_edges_from([(10, 11), (11, 12)])

# Choose a root node in H
root = 10

# Generate the rooted product of G and H
R = nx.algorithms.operators.product.rooted_product(G, H, root)

# Print the edges of the rooted product R
print(list(R.edges()))
<|EOT|>
