Code for Learning Dependency Graph between Latent Factors from Data