In the graphtool.py (line 23) :
distances = list(map(lambda x: euclidean_distance(p, x), points)) closests = np.argsort(distances)[1:k+1]
In Python3.x, the return of map function is different from python2.
So it should be:
distances =list(map(lambda x: euclidean_distance(p, x), points)) closests = np.argsort(distances)[1:k+1]