<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices and edges forming a pentagon, can you use the to_directed function in igraph to convert an undirected graph into a directed graph, and then print a summary of the directed graph?
### Response:
import igraph as ig

# Create an undirected graph
undirected_graph = ig.Graph(n=5)

# Add some edges
undirected_graph.add_edges([(0,1), (1,2), (2,3), (3,4), (4,0)])

# Convert the undirected graph to directed
directed_graph = undirected_graph.to_directed()

# Print summary of the directed graph
print(directed_graph.summary())
<|EOT|>
