updated graph node retrieval method