This fn isn't clear to me. I think it's partly the name, and partly that we're re-using `unvisited-neigbors` in a way that happens to work but isn't semantically significant.