graphical_models.classes.mags.ancestral_graph.AncestralGraph.children_of
- AncestralGraph.children_of(i: Union[Hashable, Set[Hashable]]) Set[Hashable] [source]
Return the children of the node or set of nodes
i
.- Parameters
i – Node.
Examples
>>> from graphical_models import AncestralGraph >>> g = AncestralGraph(directed={(1, 2), (2, 3)}, undirected={(1, 4)}) >>> g.children_of(1) {2} >>> g.children_of({1, 2}) {2, 3}