<｜begin▁of▁sentence｜>### Instruction:
Given two sets of nodes, [0, 1, 2, 3] and [10, 11, 12], the first set forms a star centered at 0, and the second set forms a star centered at 10 with a weight of 2 on each edge. How would you use NetworkX to create a graph containing these two stars?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()

# Add a star with a center node 0 and leaf nodes 1, 2, and 3
nx.add_star(G, [0, 1, 2, 3])

# Add another star with a center node 10 and leaf nodes 11, 12,
# and assign weight 2 to each edge
nx.add_star(G, [10, 11, 12], weight=2)

print(G.edges(data=True))
<|EOT|>
