Move graph traversal to worker.