Are you referring to the device hacking?
If that's the case it's purely random for what I recall. High hacking skills means higher chances to get a good node.
The only part I was paying attention to were which node to unlock first. I chose them so that if they came out as bad I didn't block two or more lines from potential success