<｜begin▁of▁sentence｜>### Instruction:
{'description': 'Given a graph with the edge set [(1, 2), (2, 3), (3, 4), (4, 5), (5, 1)], can you use NetworkX to determine the frequency of each degree value?', 'data': 'The edge set of the graph is [(1, 2), (2, 3), (3, 4), (4, 5), (5, 1)].', 'problem': 'The problem is to calculate and display the frequency of each degree value, which is the degree histogram of the graph.'}
### 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)])

# Calculate the degree histogram
histogram = nx.degree_histogram(G)

print('Degree histogram:', histogram)
<|EOT|>
