Explain DFS and BFS and when you would use each.
Implement both traversals for a directed graph. Given an adjacency-list dictionary and a starting node, return the DFS and BFS visit orders for nodes reachable from the start. Visit each node at most once and process neighbors in the order provided.
Function signature: graph_traversals(graph, start) Input is dict[node, list[node]]; output is {"dfs": list[node], "bfs": list[node]}. Assume every referenced neighbor appears as a graph key.
def graph_traversals(graph, start):