<｜begin▁of▁sentence｜>### Instruction:
Given a path graph of 4 nodes, can you demonstrate how to generate and print the GraphML representation using NetworkX's generate_graphml function?
### Response:
import networkx as nx

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

# Generate GraphML lines
graphml_lines = nx.generate_graphml(G, prettyprint=True)

# Print the generated GraphML lines
for line in graphml_lines:
    print(line)
<|EOT|>
