pysal/pysal — pull request #262 by sjsrey (2013-06-30 17:07:25+00:00)
Title: handle ties in knnW in doctest

For the Manhattan metric on a regular latice with k=3 there are three possible solutions for a corner cell. This pr allows for random breaking of the ties. Working on a different branch exploring cKDTree made this apparent so I think we should change it here to make the readers aware of the possible non-uniqueness of the solutions returned. This will also ease a move to cKDTree later on.