Sparse and partially observed large-scale networks: analytic statistics, behaviour, and structural inference