def transitively_close(self, xs, inheritance_key_id):
    """Find transitive closure under given relation of the set of frames xs."""
    ancestors = set(xs)
    self._collect_ancestors(ancestors, xs, inheritance_key_id, 0)
    return ancestors
Find transitive closure under given relation of the set of frames xs.
language/templama/sling2facts.py