add graph api