graphical_models.classes.dags.dag.DAG.upstream_most

DAG.upstream_most(s: Set[Hashable]) Set[Hashable][source]

Return the set of nodes which in s which have no ancestors in s.

Parameters

s – Set of nodes

Return type

The set of nodes in s with no ancestors in s.