add the new graph building files

altered one on graph building.