<｜begin▁of▁sentence｜>### Instruction:
Given a file 'path_to_adjlist_file.adjlist' containing an adjacency list, how do you read this file into a NetworkX graph and convert the node labels to integers?
### Response:
import networkx as nx

# To read an adjacency list from a file
G = nx.read_adjlist('path_to_adjlist_file.adjlist', nodetype=int)
print('Graph has been read from adjacency list:', G.edges())
<|EOT|>
