homologs in graphs