<｜begin▁of▁sentence｜>### Instruction:
As a computer science instructor, imagine you have a graph representing student data, where each vertex represents a student and has attributes like 'name' and 'age'. Your task is to write a code snippet using the NetworkX library to retrieve and print the list of all vertex attribute names associated with the students in the graph. This will help students understand how to access and list attribute names when working with graph data structures.
### Response:
import igraph as ig

# Create a graph with 3 vertices
graph = ig.Graph(n=3)

# Add some attributes to vertices
graph.vs['name'] = ['A', 'B', 'C']
graph.vs['age'] = [25, 31, 22]

# Accessing the list of all vertex attributes
attributes = graph.vs.attributes()

# Print attribute names for all vertices
print('Vertex attributes:', attributes)
<|EOT|>
