datagraph checkForSubGraphs() fix