Statistical mechanical analysis for unweighted and weighted stock market networks. (December 2021)