RF: change logic to prevent empty partition in newman_partition 

make logic that uses eigenvecotrs to split network into partitions more readable based on suggestion by @stefanv