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:

pyagrum.DAG

See also

pyagrum.graph.consistentExtension

the 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

MPDAG