def METHOD_NAME(self, node: UniqueId, max_depth: Optional[int] = None) -> Set[UniqueId]:
    """Returns all nodes reachable from `node` in `graph`"""
    if not self.graph.has_node(node):
        raise DbtInternalError(f"Node {node} not found in the graph!")
    filtered_graph = self.exclude_edge_type("parent_test")
    return {child for _, child in nx.bfs_edges(filtered_graph, node, depth_limit=max_depth)}