<｜begin▁of▁sentence｜>### Instruction:
Given a graph whose edge set is [(1, 2), (1, 3), (2, 3), (3, 4), (4, 5)], can you calculate the eigenvalues of the adjacency matrix using NetworkX?
### Response:
import networkx as nx
import numpy as np

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

# Compute the adjacency spectrum
adj_spectrum = nx.adjacency_spectrum(G)

# Output the eigenvalues
print('Adjacency spectrum:', np.round(adj_spectrum, 3))
<|EOT|>
