Fixed errors in the neighbour generation method and the graphing method