<｜begin▁of▁sentence｜>### Instruction:
Given a GEXF file at 'path_to_gexf_file.gexf', which contains network data with labeled nodes and possibly multiple relationship types, can you load the graph using NetworkX, relabeling the nodes to use the GEXF node label attribute instead of the node id attribute, and ensure that the node ids are converted to integers?
### Response:
import networkx as nx

# Path can be a file, or a string with file content
path = 'path_to_gexf_file.gexf'

# Read the GEXF file
G = nx.read_gexf(path, node_type=int, relabel=True, version='1.2draft')

# Print the edges of the graph
print(G.edges())

# Print the nodes of the graph with their attributes
for node, attrs in G.nodes(data=True):
    print(node, attrs)
<|EOT|>
