Add few more assertions for bfs
Fix the indentation in dfs
Validate the parameters in dfs
Fix dfs
Export dfs