gmc function

Graphical model check