Algorithm to use chnavase with Random Walk