Find top-k rated nodes via traversal | TikTok