<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 5 nodes created using NetworkX, how can you list the edges that are part of a depth-first search starting from the node with label 0, with a depth limit of 3?
### Response:
import networkx as nx
G = nx.path_graph(5)
edges_list = list(nx.dfs_edges(G, source=0, depth_limit=3))
print(edges_list)
<|EOT|>
