<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 4 nodes created using NetworkX, can you produce its GEXF (Graph Exchange XML Format) representation, ensuring that the output XML is pretty-printed?
### Response:
import networkx as nx

# Create a graph
G = nx.path_graph(4)

# Generate GEXF format representation of the graph
for line in nx.generate_gexf(G, prettyprint=True):
    print(line)
<|EOT|>
