<｜begin▁of▁sentence｜>### Instruction:
Given a graph whose edge set is [(1, 2), (2, 3), (3, 4), (4, 5), (5, 1), (3, 5)], compute and list the edges of the 2-core of the graph using NetworkX.
### Response:
import networkx as nx

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

# Compute the k-core of the graph
k_core_graph = nx.k_core(G, k=2)

# Print the edges of the k-core graph
print('Edges of the k-core:', list(k_core_graph.edges()))
<|EOT|>
