check subject is in graph retrieved for subject