Sturm-Liouville differential operators with singular potentials on arbitrary compact graphs are studied. The uniqueness of recovering operators from Weyl functions is proved and a constructive procedure for the solution of this class of inverse problems is provided.