<｜begin▁of▁sentence｜>### Instruction:
Given two graphs represented by edge sets [(0, 1), (1, 2)] and [(2, 3), (3, 4)], can you use the graph union operator in igraph to create the union of both graphs and print the edges of the union graph?
### Response:
import igraph as ig

# Create two graphs
g1 = ig.Graph(edges=[(0, 1), (1, 2)])
g2 = ig.Graph(edges=[(2, 3), (3, 4)])

# Take the union of g1 and g2 using the '|'' operator
g_union = g1 | g2

# Print the edges of the union graph
print(g_union.get_edgelist())
<|EOT|>
