use C++ and qt4 to design the GUI as well as Visulization of the network