<｜begin▁of▁sentence｜>### Instruction:
Imagine you're preparing a sequence for a yoga class that flows naturally from one pose to the next, just like a directed graph where each pose is a node and the transitions are directed edges. Now, envision you have a set of poses: Warrior II (2), Mountain Pose (1), Downward Dog (5), Triangle Pose (3), and Half Moon (4). The transitions between these poses are as follows: Warrior II leads into Mountain Pose and Downward Dog, Mountain Pose flows into Triangle Pose and Half Moon, and Downward Dog transitions into Half Moon.

In creating a yoga sequence that reflects this flow but also wishes to arrange the poses in a particular sequence that moves from the foundational to the more complex, one might seek an arrangement that respects the natural progression of the poses (honoring the directed transitions) while also choosing an order that is aesthetically pleasing (a lexicographical order). 

How could one craft such a yoga sequence that moves through the poses in a way that has a unique lexicographical elegance, aligning with the natural progression and alignment of our directed pose graph?
### Response:
import networkx as nx

# Create a directed graph
DG = nx.DiGraph([(2, 1), (2, 5), (1, 3), (1, 4), (5, 4)])

# Perform a lexicographical topological sort
sorted_nodes = list(nx.lexicographical_topological_sort(DG))

# Output the sorted nodes
print(sorted_nodes)
<|EOT|>
