<｜begin▁of▁sentence｜>### Instruction:
As a Remote Sensing Scientist, you have been tasked with analyzing satellite imagery to monitor and interpret the environmental data of a particular region. The data includes a directed graph representing the relationships between different locations, with edges [(1, 3), (3, 4), (2, 4), (4, 5)]. Utilizing tools such as NetworkX, you are required to find the shortest path from a specific location (node 1) to another (node 5) within this graph to aid in planning and decision-making related to environmental monitoring and management.
### Response:
from networkx import DiGraph

# Given a directed graph explicitly by edges
edges = [(1, 3), (3, 4), (2, 4), (4, 5)]

# Create a directed NetworkX graph from the edges
G = DiGraph(edges)

# Find the shortest path in the graph from node 1 to node 5
shortest_path = nx.shortest_path(G, source=1, target=5)

# Print the nodes in the shortest path
print(shortest_path)
<|EOT|>
