adding an equivalent main for weighted bipartite modularity