<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 5 nodes, how can you use NetworkX to position and display the nodes using the Fruchterman-Reingold force-directed algorithm to visually show the structure of the graph?
### Response:
import networkx as nx
import matplotlib.pyplot as plt

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

# Position nodes using Fruchterman-Reingold force-directed algorithm
pos = nx.spring_layout(G, k=0.75, iterations=100)

# Draw the graph using the positions from spring_layout
nx.draw(G, pos, with_labels=True)
plt.show()
<|EOT|>
