Functions to help the process of learning structural equation