Implements methods to compute the modularity Q of a network. @since 1.0b