<｜begin▁of▁sentence｜>### Instruction:
Given a GML file 'path_to_gml_file.gml' with node labels and edge connections defined, how can you use NetworkX to read this graph into a NetworkX graph object, converting node labels to integers in the process?
### Response:
import networkx as nx

# Read the graph from 'path_to_gml_file.gml'
G = nx.read_gml('path_to_gml_file.gml', destringizer=int)

# Print the nodes from the graph
print(G.nodes())
print(G.edges())
<|EOT|>
