<｜begin▁of▁sentence｜>### Instruction:
Using the NetworkX library, perform a breadth-first search on path graph with 5 nodes starting from node 0, with a maximum search depth of 2. What are the edges visited in the search?
### Response:
import networkx as nx

# Create a graph
G = nx.path_graph(5)

# Perform a breadth-first search starting at node 0
edges_list = list(nx.bfs_edges(G, source=0, depth_limit=2))

print('Edges in BFS:', edges_list)
<|EOT|>
