<｜begin▁of▁sentence｜>### Instruction:
Given a file 'path_to_graph.graphml' which contains a graph in GraphML format, can you show me how to read this graph into a NetworkX graph object, ensuring that node IDs are of type int and graphml edge IDs are also converted to int type when constructing a NetworkX graph? How do you print the edges of the graph after reading it?
### Response:
import networkx as nx

# Read a graph from a GraphML file
G = nx.read_graphml('path_to_graph.graphml', node_type=int, edge_key_type=int)

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