Discrete Graphical Models in Social Mobility