K-distance graph