graph test data
nearest neighbor algorithm