graph error handling