Directed graphical model