<｜begin▁of▁sentence｜>### Instruction:
Using a path graph with 5 nodes created by `nx.path_graph(5)`, where node labels range from 0 to 4, what is the shortest path from the source node 0 to the target node 4?
### Response:
import networkx as nx

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

# Compute shortest paths from source node 0 to all other nodes
paths = nx.single_source_shortest_path(G, source=0)

# Get the shortest path from node 0 to node 4
shortest_path_to_4 = paths[4]
print('Shortest path from node 0 to node 4:', shortest_path_to_4)
<|EOT|>
