<｜begin▁of▁sentence｜>### Instruction:
Given an adjacency list stored in a file 'path_to_file.adjlist' with node labels as integers, how can you create a NetworkX graph and display its nodes and edges?
### Response:
import networkx as nx

# Read the adjacency list from a file
G = nx.read_adjlist('path_to_file.adjlist', nodetype=int)

# Print the nodes and edges in the graph
print('Nodes:', G.nodes())
print('Edges:', G.edges())
<|EOT|>
