Optimal algorithms for some inverse uncapacitated facility location problems on networks. (4th May 2022)