graph.meekClosure

pyagrum.graph.meekClosure(pdag)

The closure of a PDAG under the orientation rules of Meek, if the PDAG has a consistent extension.

The closure is the maximally oriented PDAG (MPDAG) of the extensions: its arcs are the arcs shared by all of them. pyagrum.MPDAG.fromPDAG() gives it as an MPDAG.

Parameters:

pdag (PDAG | ChainGraph) – the PDAG

Returns:

the closure, or None if pdag has no consistent extension

Return type:

pyagrum.PDAG | None

References

C. Meek. Causal inference and causal explanation with background knowledge. Proceedings of the 11th Conference on Uncertainty in Artificial Intelligence (UAI 1995), pp. 403-410.

Example

import pyagrum as gum
import pyagrum.graph as gg

gg.meekClosure(gum.fastPDAG("A->B-C")).arcs()  # rule R1
# {(0, 1), (1, 2)}