SMS dit: Probabilistic foundations of statistical network analysis