add whole graph