Thermodynamic motif analysis for directed stock market networks. (June 2021)