add graph merge