Statistical Tools for Directed and Bipartite Networks