DOC Fix incorrect parameter docstring in kneighbors_graph method
@@ -838,7 +838,9 @@ class KNeighborsMixin:
mode : {'connectivity', 'distance'}, default='connectivity'
Type of returned matrix: 'connectivity' will return the
connectivity matrix with ones and zeros, in 'distance' the
- edges are Euclidean distance between points.
+ edges are distances between points, type of distance
+ depends on the selected metric parameter in
+ NearestNeighbors class.
Returns
-------
@@ -1162,7 +1164,9 @@ class RadiusNeighborsMixin:
mode : {'connectivity', 'distance'}, default='connectivity'
Type of returned matrix: 'connectivity' will return the
connectivity matrix with ones and zeros, in 'distance' the
- edges are Euclidean distance between points.
+ edges are distances between points, type of distance
+ depends on the selected metric parameter in
+ NearestNeighbors class.
sort_results : bool, default=False
If True, in each row of the result, the non-zero entries will be
