<｜begin▁of▁sentence｜>### Instruction:
As a forensic linguist, I assist in analyzing language and communication to help in criminal investigations, such as authorship analysis or linguistic profiling. In this case, let's say you are working on a cybercrime case involving the analysis of a directed graph representing communication patterns between individuals involved. In the graph, each edge has attributes such as 'weight' and 'color' representing the strength of connection and the nature of communication. Using networkx, you might want to access the edge attributes to list and print all the attributes associated with each edge in the graph. This would help in understanding the patterns of communication and relationships within the network.
### Response:
import igraph as ig

# Create a directed graph with edge attributes
g = ig.Graph(directed=True)

# Add vertices
g.add_vertices(3)

# Add edges with attributes
g.add_edges([(0, 1), (1, 2)])
g.es['weight'] = [2, 3]
g.es['color'] = ['red', 'blue']

# Get the list of edge attributes
edge_attributes = g.es.attributes()

# Print the list of edge attributes
print(edge_attributes)
<|EOT|>
