Building new graph