<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edges (0-1, 1-2, 2-3, 3-4) and weights [3, 5, 6, 2], can you use the EdgeSeq.find method in igraph to find the first edge with a weight larger than 5 and print the edge along with its weight?
### Response:
import igraph as ig

# Create a graph with weighted edges
g = ig.Graph([(0, 1), (1, 2), (2, 3), (3, 4)], directed=False)
g.es['weight'] = [3, 5, 6, 2]  # Assign weights to the edges

# Find the first edge with a weight larger than 5
first_heavy_edge = g.es.find(weight_gt=5)
print('The first heavy edge is:', first_heavy_edge.tuple, 'with weight:', first_heavy_edge['weight'])
<|EOT|>
