Prevent "sample larger than population" error when calling choose_nodes func
Merge branch 'develop' of https://github.com/APTrust/APTrustDPN into develop