<｜begin▁of▁sentence｜>### Instruction:
As an air traffic controller, you're overseeing the movement of aircraft to ensure safety and efficiency in the airspace. Now, imagine you have a system that represents the network of air traffic routes between airports. Each route segment is represented by a line connecting two airports. Along with these segments, there are attributes assigned to each airport, such as their airport code and the average number of daily flights.

In this context, suppose you have a particular route segment network defined by a set of lines connecting airports. Each airport is labeled with its airport code, and there's an additional attribute assigned to each airport indicating the average number of daily flights. Now, you need to retrieve a list of the attribute names associated with each airport in the network.

Now, how would you approach retrieving this list of attribute names for the airports in the route segment network?
### Response:
from igraph import Graph

# Create a graph
edges = [(0, 1), (1, 2), (2, 3)]
g = Graph(edges=edges)

# Add some vertex attributes
g.vs['label'] = ['A', 'B', 'C', 'D']
g.vs['weight'] = [10, 20, 30, 40]

# Get the attribute names of the vertices
vertex_attributes = g.vs.attribute_names()

# Print the attribute names
print(vertex_attributes)
<|EOT|>
