Nearest neighbor selection generalized enough so that we are not limited to embedding functions. For example, we could also embed source/sink-paths.