Random walks for subject hierarchy simplification