<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with four nodes created using NetworkX, can you generate and print the corresponding GraphML lines with prettyprint formatting?
### Response:
import networkx as nx

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

# Generate GraphML lines
for line in nx.generate_graphml(G, prettyprint=True):
    print(line)
<|EOT|>
