Learned Grapjs - DFS & BFS