Valid Network interview question

Implement BFS and DFS, explain the difference between the two, using python