The key issue of researches on wireless sensor networks is to balance the energy costs across the whole network and to enhance the robustness in order to extend the survival time of the whole sensor network. As a special complex network limited especially by the environment, sensor network is much different from the traditional complex networks, such as Internet network, ecological network, social network and etc. It is necessary to introduce a way of how to study wireless sensor network by complex network theory and analysis methods, the key of which lies in a successful modeling which is able to make complex network theory and analysis methods more suitable for the application of wireless sensor network in order to achieve the optimization of some certain network characteristics of wireless sensor network. Based on generation rules of traditional scale-free networks, this paper added several restrictions to the improved model. The simulation result shows that improvements made in this paper have made the entire network have a better robustness to the random failure and the energy costs are more balanced and reasonable. This improved model which is based on the complex network theory proves more applicable to the research of wireless sensor network.