fixed graph and reverse calc the chromosome