Fixed errors in the neighbour generation method and the graphing method
Fixed errors in the neighbour generation method and the graphing method