<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices and edges where each edge has a 'weight' and 'label' attribute, can you use EdgeSeq.attributes in igraph to list all the different attributes associated with the edges?
### Response:
from igraph import Graph

# Create an example graph with edge attributes
g = Graph()
g.add_vertices(3)
g.add_edges([(0, 1), (1, 2)])
g.es['weight'] = [1.0, 2.5]
g.es['label'] = ['a', 'b']

# Retrieve and print the list of all edge attributes
edge_attributes = g.es.attributes()
print('Edge Attributes:', edge_attributes)
<|EOT|>
