<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edge set [(0, 1), (1, 2), (1, 3), (2, 4)], can you list the edges obtained through breadth-first search (BFS) starting from node 0?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2), (1, 3), (2, 4)])

# Perform BFS and get the edges
edges = list(nx.bfs_edges(G, source=0))
print('Edges in BFS order:', edges)
<|EOT|>
