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

# Create a graph
edges = [(0, 1), (0, 2), (1, 2), (2, 3)]
g = Graph(edges)

# Check if two vertices are connected
v1 = 0
v2 = 3
are_connected = g.are_connected(v1, v2)

# Print the result
print(f'Vertices {v1} and {v2} are connected: {are_connected}')
<|EOT|>
