<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with the edge set [(1, 2), (1, 3), (2, 3), (3, 4), (3, 5)], how would you reverse the direction of all the edges using NetworkX, and what would the edges of the reversed graph be?
### Response:
import networkx as nx

# Create a directed graph
G = nx.DiGraph([(1,2), (1,3), (2,3), (3,4), (3,5)])

# Reverse the graph
G_reversed = nx.reverse(G, copy=True)

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