<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with edges that have a 'weight' attribute, which EdgeSeq method can be used to return a filtered list of edges where the weight is greater than 50, and how would you print the weights of these heavy edges?
### Response:
from igraph import Graph

# Create a graph from a known adjacency list
adj_list = [(0, 1), (1, 2), (2, 3), (3, 4)]
g = Graph(adj_list, directed=True)

# Use EdgeSeq to filter out edges with a weight greater than 50
# First, assign some weights to the edges
g.es['weight'] = [10, 55, 35, 80]

# Now filter edges based on those weights
g_heavy = g.es.select(weight_gt=50)

# Print the IDs of heavy edges
print(g_heavy['weight'])
<|EOT|>
