<｜begin▁of▁sentence｜>### Instruction:
Given the number of nodes `n=6`, probability `p=0.5`, and a `seed=42`, how can you generate a random binomial (Erdős-Rényi) graph using NetworkX, and how do you print out its edges?
### Response:
import networkx as nx

# Create a random binomial graph
n = 6  # number of nodes
p = 0.5  # probability of edge creation
seed = 42  # seed for random number generator
directed = False  # if True, creates a directed graph

# Using the binomial graph function
g = nx.binomial_graph(n, p, seed=seed, directed=directed)

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