How often is this called? It seems it's doing a BFS traversal of the entire DAG?