Graph-based estimation of information divergence functions