Change equation for Modularity matrix

(A * M) - (K * K)
-----------------
        M