Thanks for looking! Actually, D-A is included in edgepairs as {A, D}. The weight for that edge is then found in edgepairweights. See also the final output. I’ve only tested on tiny examples though. Next up are some with 100’s of vertices, then on to the 1000’s.
I’m curious though if weighted graphs are supported by NearestNeighborGraph[] ?
Information for AI agents: this site’s guide is at /llms.txt. Search results are available as JSON from /search.json?q=…; the /search page returns no results to automated clients.