<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(0, 1), (1, 2), (2, 3), (3, 4)], how would you use the Matching.matching attribute in igraph to designate that vertex 0 is matched with vertex 1, and vertex 2 is matched with vertex 3, with vertex 4 remaining unmatched?
### Response:
from igraph import Graph, Matching

# Create a graph
graph = Graph()
graph.add_vertices(5)
graph.add_edges([(0, 1), (1, 2), (2, 3), (3, 4)])

# Create a Matching object
matching = Matching(graph)

# Define the matching vector where vertex 0 is matched with 1, and 2 with 3
matching_vector = [1, 0, 3, 2, -1]

# Set the matching
matching.matching = matching_vector

# Print the edges that are part of the matching set
print(matching)
<|EOT|>
