<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices and a specific set of edges, how can you determine if two vertices in the graph are directly connected?
### Response:
from igraph import Graph

# Create a graph with 5 vertices and edges connecting vertex pairs
edges = [(0, 1), (1, 2), (3, 4)]
g = Graph(edges)

# Check if vertex 0 and vertex 2 are connected
directly_connected = g.are_connected(0, 2)
print('Vertices 0 and 2 are directly connected:', directly_connected)
<|EOT|>
