added the code to compare hub and authority ranks in different network type