<｜begin▁of▁sentence｜>### Instruction:
As a chemical engineer designing a new chemical process, you've created a network model to represent the flow of materials through various stages. Now, you've assigned different weights to the edges representing the efficiency or cost of transporting materials between stages. However, you need to integrate this network model with another software tool, like the "ChemicalProcessSimulator" API, which requires specific attribute names for each edge. Given that your network is currently represented using the NetworkX library, you're wondering how to determine the corresponding attribute names assigned to the edges in the "ChemicalProcessSimulator" API.
### Response:
import igraph as ig

# Create a graph
edges = [(0, 1), (1, 2), (2, 3)]
weights = [1, 2, 3]
g = ig.Graph(edges=edges)
g.es['weight'] = weights  # Set edge weights

# Get the attribute names of the edges
attribute_names = g.es.attribute_names()

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