graphical_models.classes.mags.ancestral_graph.AncestralGraph.district_of

AncestralGraph.district_of(node: Hashable, node_subset=None) Set[Hashable][source]

Return the district of a node, i.e., the set of nodes reachable by bidirected edges. If node_subset is provided, do this on the induced subgraph on that subset of nodes.

Returns

The district of node.

Return type

Set[node]

Examples

TODO