graphical_models.classes.mags.ancestral_graph.AncestralGraph.descendants_of

AncestralGraph.descendants_of(nodes: Union[Hashable, Set[Hashable]], exclude_arcs={}) Set[Hashable][source]

Return the descendants of the node or set of nodes nodes.

Parameters

nodes – The nodes.

See also

ancestors_of

Returns

Return all nodes j such that there is a directed path from node j.

Return type

Set[node]

Example

TODO