graphical_models.classes.mags.ancestral_graph.AncestralGraph.is_imap

AncestralGraph.is_imap(other, certify: bool = False) bool[source]

Check if this graph is an IMAP of the graph other, i.e., all m-separation statements in this graph are also m-separation statements in other.

Parameters
  • other – Another DAG.

  • certify – TODO

See also

is_minimal_imap

Examples

>>> from graphical_models import AncestralGraph
>>> g = AncestralGraph(arcs={(1, 2), (3, 2)})
TODO