P is not my game , but are you trying to do some Recursive proximity search? (a chain reaction so to speak)
I.e. given a collection of rnd (or not) pts, start from somewhere (node 0), get the prox points (either a user controllable amount of them OR points with distances - to node 0 - within a user defined domain), then for each prox point as a new node … do a Recursion until all the points are visited/consumed OR the computer halts because you forgot to ask the right questions with regard the Recursion termination.
If yes then by controlling the max loops (and/or other Recursion termination stuff) you can watch some sort of “evolving” solution (or animate the max loops slider and get some mpeg thingy).