Graphical models for causal inference