add graph API