Gaussian ring for mixed graphs