Dirichlet forms for singular diffusion on graphs