<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices labeled from 0 to 5 and edges forming a straight line between them, can you contract vertices 1 and 2 into a single vertex, and also vertices 4 and 5 into another single vertex using the Graph.contract_vertices function from igraph, assuming that the attributes of the vertex with the smaller label will be preserved after the contraction? After contracting, ensure to simplify the graph to remove self-loops or multiple edges.
### Response:
from igraph import Graph

# Constructing a simple graph with 6 vertices
edges = [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5)]
g = Graph(edges=edges)

# Contract vertices 1 and 2, and also 4 and 5 into single vertices
g.contract_vertices([0, 1, 1, 3, 4, 4], combine_attrs='first')

g.simplify()
print(g)
print(g.get_adjacency())
<|EOT|>
