Not sure if anyone has wondered about this, but if you're curious how routes in the lightning network are selected by the sender's node... seems like it's Dijkstra's Algorithm.
This was kind of fun to discover since that algo is like, an all-time classic technical interview coding question. Mapping software uses this algo as well for plotting your routes during drives.
Nice video here helps you see how it works 😸 (even if you aren't into writing code)
https://www.youtube.com/watch?v=EFg3u_E6eHU