Add methods to merge index and graph