<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edges between nodes, how would you use the EdgeSeq.EdgeSeq.__call__ method in igraph to select and print all edges where both nodes have an even ID?
### Response:
from igraph import Graph

# Create a graph
edges = [(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)]
g = Graph(edges=edges)

# Retrieve edges where both nodes have an even ID
even_edges = g.es(lambda edge: edge.source % 2 == 0 and edge.target % 2 == 0)

# Print the selected edges
for e in even_edges:
    print(f'Edge from {e.source} to {e.target}')
<|EOT|>
