adding graph index support to API generated graphs