<｜begin▁of▁sentence｜>### Instruction:
Given the need to reproduce experimental network generation by fixing the random seed, how can you use the NetworkX utility function 'create_random_state' to initialize a random state and create a random graph with 10 nodes and a probability of 0.5 for edge creation?
### Response:
import networkx as nx
import numpy as np

# Initialize a random state with a fixed seed
random_state = nx.utils.create_random_state(42)

# Now use the random state to create a random graph
G = nx.erdos_renyi_graph(10, 0.5, seed=random_state)

# Print the edges of the graph
print(G.edges())

# Use the default global random number generator
random_state_default = nx.utils.create_random_state()

# Create another random graph using the default global generator
G_default = nx.erdos_renyi_graph(10, 0.5, seed=random_state_default)
print(G_default.edges())
<|EOT|>
