renamed graph method