<｜begin▁of▁sentence｜>### Instruction:
Imagine you have created a little town on paper for story-time with the children, where the town has various points like 'X', 'Y', and 'Z'. You've drawn arrows to show the path from 'X' to 'Y' and then from 'Y' to 'Z', representing the journey of an adventurous character. To add to the fun, you've come up with a game where the kids can follow these paths and tell stories about what the character sees on their journey. You're using the 'show_diedges' feature of this game to clearly explain to the children all the possible paths the character can take in our story-time adventure game. How would you introduce this game of paths to the kids while ensuring they understand all the directed routes our character can travel?
### Response:
import networkx as nx

# Create a directed graph
G = nx.DiGraph()

# Add edges
G.add_edge('X', 'Y')
G.add_edge('Y', 'Z')

# Function to show all directed edges
def show_diedges(graph):
    return list(graph.edges())

# Show all directed edges in the graph
edges = show_diedges(G)
print(edges)
<|EOT|>
