Fixed overcounting sampling issue in LinkScore and derived functions.