The construction of complex networks in current financial data does not take into account the energy characteristics that exist in similar stocks. Without considering the stock network as a kind of asymmetric directed network, most of the existing researches only measure the importance of nodes from the nodes degree in the network, lack of comprehensive consideration of structure and function. Second, for the division of the community, many algorithms are based on the number of community is known, and the network is unweighted and undirected. Based on the entropy analysis of information theory, in this paper we study the complexity and information flow of stock time series and construct the stock influence network on the basis of transfer entropy. By combining the structural features and functional characteristics of complex networks, we find the relationship between stocks. At last we design and verify the forecasting ability of the proposed long- and short-memory model.