Direct R Translation of Xiaojin Zhu's Matlab code to determine harmonic solution
harmonic_function(W, Y)
The harmonic solution, i.e. eq (5) in the ICML paper, with or without class mass normalization
matrix; weight matrix where the fist L rows/column correspond to the labeled examples.
matrix; l by c 0,1 matrix encoding class assignments for the labeled objects