<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 3 vertices connected in a cycle, can you check if the graph is directed?
### Response:
import igraph as ig

# Create a directed graph with 3 vertices and 3 edges
graph = ig.Graph(edges=[(0, 1), (1, 2), (2, 0)], directed=True)

# Check if the graph is directed
is_directed = graph.is_directed()
print('The graph is directed:', is_directed)
<|EOT|>
