<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices having color attributes, how can you retrieve the attributes of a specific vertex?
### Response:
from igraph import Graph

# Define your graph with some vertex attributes
g = Graph(edges=[(0, 1), (2, 3)], vertex_attrs={'color': ['red', 'green', 'blue', 'yellow']})

# Access attributes of the first vertex
vertex_attributes = g.vs[0].attributes()
print(vertex_attributes)
<|EOT|>
