graphical_models.classes.mags.ancestral_graph.AncestralGraph.markov_blanket_of
- AncestralGraph.markov_blanket_of(node, flat: bool = False) Union[Set[Hashable], Dict] [source]
Return the Markov blanket of a node with respect to the whole graph.
- Parameters
node – The node whose Markov blanket to find.
flat – if
True
, return the Markov blanket as a set, otherwise return a dictionary mapping nodes in the district of node to their parents.
- Return type
The Markov blanket of node, including the node itself.