NF: method in GraphPArtition to check that index is a dict containing sets