Permutation Codes, Hamming Graphs and Turan Graphs