@unittest.skip("")
    def testModularityMatrix(self): 
        W = scipy.sparse.csr_matrix((5, 5))
        W[1, 0] = 1
        W[0, 1] = 1
        W[2, 3] = 1
        W[3, 2] = 1
        B = GraphUtils.modularityMatrix(W)
        
        B2 = numpy.zeros((5,5))
        d = numpy.array(W.sum(0).ravel()).ravel()
        m = W.getnnz()/2
        
        for i in range(5): 
            for j in range(5): 
                B2[i,j] = W[i,j] - d[i]*2*m/d[j]
                self.assertEquals(B2[i, j], B[i, j])
dataset/ETHPy150Open charanpald/APGL/apgl/graph/test/GraphUtilsTest.py/AbstractMatrixGraphTest.testModularityMatrix/swapped operands of `/`