CPDAG.consistentExtension
- CPDAG.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
cpdag = gum.CPDAG.fromDAG(gum.fastDAG("A->B->C;D->C"))
dag = cpdag.consistentExtension()
cpdag.contains(dag), dag.sizeArcs()
# (True, 3)
Used by
