ON THE NONNEGATIVITY OF THE DIRICHLET ENERGY OF A WEIGHTED GRAPH