Statistical Inference For Some Problems In Network Analysis.