Minimax Rates in Network Analysis: Graphon Estimation, Community Detection and Hypothesis Testing