Semiparametric And Nonparametric Methods For Network Data