How does the node alignment work?

I don’t mean how to use it, I want to know how they work under the hood, if I press Q to align them I never know which way it’s going to align. How do I know to which node the rest will align to?

1 Like