Inference for Preferential Attachment Models and Related Topics