Transformation of bipartite networks