<｜begin▁of▁sentence｜>### Instruction:
Given 10 nodes, how can you generate an Erdős-Rényi graph with a probability of edge creation of 0.5 using NetworkX and make sure the results are reproducible by setting a seed value?
### Response:
import networkx as nx

# Generate an Erdős-Rényi graph with 10 nodes and a probability of 0.5
G = nx.erdos_renyi_graph(10, 0.5, seed=42)

# Print the edges of the graph
print(G.edges())
<|EOT|>
