call chain generation: DFS vs. BFS