We examine the [Formula: see text]-ary linear codes with respect to Lee metric from incidence matrix of the Lee graph with vertex set [Formula: see text] and two vertices being adjacent if their Lee distance is one. All the main parameters of the codes are obtained as [Formula: see text] if [Formula: see text] is odd and [Formula: see text] if [Formula: see text] is even. We examine also the [Formula: see text]-ary linear codes with respect to Hamming metric from incidence matrices of Desargues graph, Pappus graph, Folkman graph and the main parameters of the codes are [Formula: see text], respectively. Any transitive subgroup of automorphism groups of these graphs can be used for full permutation decoding using the corresponding codes. All the above codes can be used for full error correction by permutation decoding.