compare graph subsets