MAG function

Maximal ancestral graph