<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 4 nodes, how can you write this graph to a file in multiline adjacency list format using NetworkX?
### Response:
import networkx as nx
# Create a path graph with 4 nodes
G = nx.path_graph(4)
# Write the graph to a multiline adjacency list file
nx.write_multiline_adjlist(G, "path_graph.adjlist")
<|EOT|>
