Learning Guassian (or non-Gaussian) Graphical model for vector, matrix or tensor data