A combinatorial Yamabe problem on two and three dimensional manifold