def iter_children(graph, node: BaseEntity) -> Iterable[BaseEntity]:
    """Iterate over children of the node."""
    return (
        node
        for node, _, d in graph.in_edges(node, data=True)
        if d[RELATION] == IS_A
    )