<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edges [(0, 1), (1, 2), (2, 3), (3, 4)], can you use Matching.match_of function in igraph to find out which vertex each vertex of the graph is matched to?
### Response:
from igraph import Graph, Matching

# Define edges for the graph
g = Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4)])

# Find a maximum matching in the graph
matching = Matching(g)

# Get the vertex each vertex of the graph is matched to
matched_vertices = {v: matching.match_of(v) for v in range(g.vcount())}

# Print the matched pairs
for vertex, match in matched_vertices.items():
    print(f'Vertex {vertex} is matched with Vertex {match}')
<|EOT|>
