create genNetwork.cpp to generate some suitable network,version 1.0