<｜begin▁of▁sentence｜>### Instruction:
Given a simple path graph with 4 nodes, how can you generate and print the GEXF (Graph Exchange XML Format) representation using NetworkX?
### Response:
import networkx as nx

G = nx.path_graph(4)
for line in nx.generate_gexf(G):
    print(line)
<|EOT|>
