created getGraphIDs method