title: How to retrieve nodes from a sklearn.neighbors.KDTree?
body: <p>Is there a way to get a node by id, or all nodes, from a <code>sklearn.neighbors.KDTree</code> instance?</p>
  
  <pre><code>  from sklearn.neighbors import KDTree
    import numpy as np
    tree = KDTree(np.array([[0., 0., 0.], [1., 1., 1.]]))
    # How to get the array [[0., 0., 0.], [1., 1., 1.]] back out?
    # Or something like this:
    tree.get_node(0)
    # Which would return: [0., 0., 0.]
  </code></pre>