MPDAG.consistentExtension
- MPDAG.consistentExtension()
- Returns:
a represented DAG (a consistent extension: same skeleton, same v-structures, containing the arcs), kept from the construction of the graph
- Return type:
See also
pyagrum.graph.consistentExtensionthe same for a PDAG, a CPDAG or an MPDAG
Example
import pyagrum as gum
mpdag = gum.MPDAG.meekClosure(gum.fastPDAG("A-B->C-D"))
dag = mpdag.consistentExtension()
mpdag.contains(dag), dag.sizeArcs()
# (True, 3)
Class