Revert "Change output form of input matrix"

This reverts commit 12ab0779bf9834257488675b399d399430a68dcb.
Calculate GeneralizedModularityMatrix