add routes for graph logic