Do a depth-first traversal of the topology to find and sort.
all objects that are at the same depth than src. Report in objs up to max physically closest ones to src.
src
objs
max