Hamilton-Jacobi equations on graphs with applications to semi-supervised learning and data depth